frontend: Remove moderator secret from session storage when participant leaves

This commit is contained in:
Carlos Santos 2025-04-09 14:50:03 +02:00
parent e80ad639d2
commit 9c0607af20

View File

@ -13,7 +13,7 @@ import {
import { MeetChatPreferences, MeetRecordingPreferences, MeetVirtualBackgroundPreferences } from '@lib/typings/ce';
import { HttpService, WebComponentManagerService, ContextService, RoomService } from '../../services';
import { HttpService, WebComponentManagerService, ContextService, RoomService, SessionStorageService } from '../../services';
import { OpenViduMeetMessage, WebComponentEventType } from 'webcomponent/src/types/message.type';
@Component({
@ -50,6 +50,7 @@ export class VideoRoomComponent implements OnInit, OnDestroy {
protected ctxService: ContextService,
protected roomService: RoomService,
protected wcManagerService: WebComponentManagerService,
protected sessionStorageService: SessionStorageService,
protected cdr: ChangeDetectorRef
) {}
@ -122,6 +123,7 @@ export class VideoRoomComponent implements OnInit, OnDestroy {
}
};
this.wcManagerService.sendMessageToParent(message);
this.sessionStorageService.removeModeratorSecret(event.roomName);
//if (this.contextService.isEmbeddedMode()) this.sendMessageToParent(event);
this.redirectTo(redirectURL, isExternalURL);