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

Clear url previews if they all get edited out of the event

This commit is contained in:
Michael Telatynski
2020-08-19 10:38:26 +01:00
parent 534f0cc89e
commit b95956a3a4
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()); const hidden = global.localStorage.getItem("hide_preview_" + this.props.mxEvent.getId());
this.setState({ widgetHidden: hidden }); this.setState({ widgetHidden: hidden });
} }
} else if (this.state.links.length) {
this.setState({ links: [] });
} }
} }
}, },