Skip to content

Commit

Permalink
fix: pass actual flags
Browse files Browse the repository at this point in the history
Signed-off-by: DorraJaouad <[email protected]>
  • Loading branch information
DorraJaouad committed Nov 6, 2024
1 parent d9c3844 commit 634c44f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/store/participantsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })

Expand All @@ -883,6 +883,11 @@ const actions = {
token,
payload
})
commit('setInCall', {
token,
sessionId: participantIdentifier.sessionId,
flags: PARTICIPANT.CALL_FLAG.DISCONNECTED,
})
}

const handleUsersInRoom = (payload) => {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/signaling.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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()
})
Expand Down

0 comments on commit 634c44f

Please sign in to comment.