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());
this.setState({ widgetHidden: hidden });
}
} else if (this.state.links.length) {
this.setState({ links: [] });
}
}
},