fix experiments

This commit is contained in:
hippoz 2021-05-25 15:52:44 +03:00
parent 7d756029d9
commit ced60c44e1
No known key found for this signature in database
GPG key ID: 7C52899193467641
2 changed files with 1 additions and 6 deletions

View file

@ -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) {

View file

@ -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) => {