diff --git a/app/features/conference/components/Conference.js b/app/features/conference/components/Conference.js index 6e39cade125e4b2120e29b2f5dbf7f18e88ec3d2..2639e1101f5323b96f8d4eba9df7a9a3476ed7e7 100644 --- a/app/features/conference/components/Conference.js +++ b/app/features/conference/components/Conference.js @@ -270,6 +270,16 @@ class Conference extends Component<Props, State> { ...urlParameters }); + + this._api.on('suspendDetected', this._onVideoConferenceEnded); + this._api.on('readyToClose', this._onVideoConferenceEnded); + this._api.on('videoConferenceJoined', + (conferenceInfo: Object) => { + this.props.dispatch(conferenceJoined(this._conference)); + this._onVideoConferenceJoined(conferenceInfo); + } + ); + const { RemoteControl, setupScreenSharingRender, setupAlwaysOnTopRender, @@ -292,15 +302,6 @@ class Conference extends Component<Props, State> { setupWiFiStats(iframe); setupPowerMonitorRender(this._api); - - this._api.on('suspendDetected', this._onVideoConferenceEnded); - this._api.on('readyToClose', this._onVideoConferenceEnded); - this._api.on('videoConferenceJoined', - (conferenceInfo: Object) => { - this.props.dispatch(conferenceJoined(this._conference)); - this._onVideoConferenceJoined(conferenceInfo); - } - ); } _onVideoConferenceEnded: (*) => void;