notify other participants on session leave

on leaving the session directly delete the participant record and
notify other clients ref: VRFS-5529
This commit is contained in:
Nuwan 2025-02-05 01:04:11 +05:30
parent 254ad61168
commit e2828b0387
1 changed files with 5 additions and 5 deletions

View File

@ -1952,7 +1952,7 @@ ConfigureTracksActions = @ConfigureTracksActions
this.rateSessionDialog.showDialog();
}
this.leaveSession();
await this.leaveSession();
await this.sessionUtils.SessionPageLeave();
}`
@ -1968,15 +1968,15 @@ ConfigureTracksActions = @ConfigureTracksActions
# @performLeaveSession(deferred)
# )
leaveSession: `function() {
leaveSession: `async function() {
if ((this.joinDeferred == null) || this.isJoinDeferredResolved) {
const deferred = new $.Deferred();
const self = this;
Promise.resolve(this.recordingModel.stopRecordingIfNeeded())
/*Promise.resolve(this.recordingModel.stopRecordingIfNeeded())
.then(async function() {
await self.performLeaveSession(deferred)
});
});*/
await self.performLeaveSession(deferred);
}
}`