You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
De-register listener.
This commit is contained in:
@@ -229,6 +229,7 @@ export default React.createClass({
|
||||
componentWillUnmount() {
|
||||
this.widgetMessaging.stopListening();
|
||||
this.widgetMessaging.removeEndpoint(this.props.id, this.props.url);
|
||||
dis.unregister(this._onAction);
|
||||
window.removeEventListener('message', this._onMessage);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user