frontend: prevent removal of moderator secret on participant left due to browser unload

This commit is contained in:
juancarmore 2025-05-16 12:49:28 +02:00
parent 9618ec6f29
commit 8c0ae5a725

View File

@ -153,7 +153,10 @@ export class VideoRoomComponent implements OnInit, OnDestroy {
}
this.wcManagerService.sendMessageToParent(message);
this.sessionStorageService.removeModeratorSecret(event.roomName);
if (event.reason !== ParticipantLeftReason.BROWSER_UNLOAD) {
this.sessionStorageService.removeModeratorSecret(event.roomName);
}
//if (this.contextService.isEmbeddedMode()) this.sendMessageToParent(event);
this.redirectTo(redirectURL, isExternalURL);