Clear url previews if they all get edited out of the event
This commit is contained in:
parent
534f0cc89e
commit
b95956a3a4
2 changed files with 3 additions and 1 deletions
|
@ -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: [] });
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue