diff --git a/src/store/participantsStore.js b/src/store/participantsStore.js index f090e697504..73d3fea7374 100644 --- a/src/store/participantsStore.js +++ b/src/store/participantsStore.js @@ -866,7 +866,7 @@ const actions = { let isParticipantsListReceived = null commit('joiningCall', { token, sessionId, flags }) - const handleJoinCall = () => { + const handleJoinCall = ([token, flags]) => { commit('setInCall', { token, sessionId, flags }) commit('finishedJoiningCall', { token, sessionId }) @@ -883,6 +883,11 @@ const actions = { token, payload }) + commit('setInCall', { + token, + sessionId: participantIdentifier.sessionId, + flags: PARTICIPANT.CALL_FLAG.DISCONNECTED, + }) } const handleUsersInRoom = (payload) => { diff --git a/src/utils/signaling.js b/src/utils/signaling.js index 90f99075e9d..9f2bd012831 100644 --- a/src/utils/signaling.js +++ b/src/utils/signaling.js @@ -274,7 +274,7 @@ Signaling.Base.prototype.joinCall = function(token, flags, silent, recordingCons this.currentCallFlags = flags this.currentCallSilent = silent this.currentCallRecordingConsent = recordingConsent - this._trigger('joinCall', [token]) + this._trigger('joinCall', [token, flags]) resolve() this._joinCallSuccess(token) }.bind(this)) @@ -1225,7 +1225,7 @@ Signaling.Standalone.prototype.joinCall = function(token, flags, silent, recordi this.currentCallFlags = flags this.currentCallSilent = silent this.currentCallRecordingConsent = recordingConsent - this._trigger('joinCall', [token]) + this._trigger('joinCall', [token, flags]) resolve() })