1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Merge pull request #5129 from matrix-org/t3chguy/fix/14989

Clear url previews if they all get edited out of the event
This commit is contained in:
Michael Telatynski
2020-08-19 11:40:57 +01:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -172,6 +172,8 @@ export default createReactClass({
const hidden = global.localStorage.getItem("hide_preview_" + this.props.mxEvent.getId());
this.setState({ widgetHidden: hidden });
}
} else if (this.state.links.length) {
this.setState({ links: [] });
}
}
},