You've already forked matrix-react-sdk
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:
@@ -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: [] });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user