From ced60c44e1719ab4a7ef3754fbf0e0e85648aa5a Mon Sep 17 00:00:00 2001 From: hippoz Date: Tue, 25 May 2021 15:52:44 +0300 Subject: [PATCH] fix experiments --- bfrontend/src/API/Gateway/GatewayConnection.js | 5 ----- bfrontend/src/API/Gateway/globalGatewayConnection.js | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/bfrontend/src/API/Gateway/GatewayConnection.js b/bfrontend/src/API/Gateway/GatewayConnection.js index 38fcc4b..b358661 100644 --- a/bfrontend/src/API/Gateway/GatewayConnection.js +++ b/bfrontend/src/API/Gateway/GatewayConnection.js @@ -176,11 +176,6 @@ GatewayConnection.prototype.negotiateVoiceSession = async function() { logRtc(`onsignalingstatechange -> ${this.webrtcConnection.signalingState}`); }; - this.webrtcConnection.onconnectionstatechange = () => { - logRtc(`onsignalingstatechange -> ${this.webrtcConnection.connectionState}`); - }; - - const offer = await this.webrtcConnection.createOffer(); await this.webrtcConnection.setLocalDescription(offer); if (this.rtcGotCandidates) { diff --git a/bfrontend/src/API/Gateway/globalGatewayConnection.js b/bfrontend/src/API/Gateway/globalGatewayConnection.js index 8dcf674..90c8e32 100644 --- a/bfrontend/src/API/Gateway/globalGatewayConnection.js +++ b/bfrontend/src/API/Gateway/globalGatewayConnection.js @@ -8,7 +8,7 @@ globalGatewayConnection.onopen = (sessionData) => { store.dispatch({ type: 'gateway/connectionstatus', gateway: { isConnected: true } }); store.dispatch({ type: 'authenticator/updatelocaluserobject', user: sessionData.user }); store.dispatch({ type: 'channels/updatechannellist', channels: sessionData.channels }); - store.dispatch({ type: 'application/updateexperiments', user: sessionData.__global_experiments || [] }); + store.dispatch({ type: 'application/updateexperiments', experiments: sessionData.__global_experiments || [] }); }; globalGatewayConnection.onmessage = (message) => {