You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
Fix duplicate event registration.
This commit is contained in:
@@ -171,6 +171,7 @@ export default React.createClass({
|
|||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
// Legacy Jitsi widget messaging -- TODO replace this with standard widget
|
// Legacy Jitsi widget messaging -- TODO replace this with standard widget
|
||||||
// postMessaging API
|
// postMessaging API
|
||||||
|
dis.register(this._onAction);
|
||||||
window.addEventListener('message', this._onMessage, false);
|
window.addEventListener('message', this._onMessage, false);
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -346,8 +347,6 @@ export default React.createClass({
|
|||||||
console.log("Failed to get widget capabilities", this.widgetId, err);
|
console.log("Failed to get widget capabilities", this.widgetId, err);
|
||||||
});
|
});
|
||||||
this.setState({loading: false});
|
this.setState({loading: false});
|
||||||
|
|
||||||
dis.register(this._onAction);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_onAction(payload) {
|
_onAction(payload) {
|
||||||
|
|||||||
Reference in New Issue
Block a user