From 9c0607af206dc573559904354cd0face20d5ab91 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Wed, 9 Apr 2025 14:50:03 +0200 Subject: [PATCH] frontend: Remove moderator secret from session storage when participant leaves --- .../src/lib/pages/video-room/video-room.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/projects/shared-meet-components/src/lib/pages/video-room/video-room.component.ts b/frontend/projects/shared-meet-components/src/lib/pages/video-room/video-room.component.ts index ff91af8..0603ca6 100644 --- a/frontend/projects/shared-meet-components/src/lib/pages/video-room/video-room.component.ts +++ b/frontend/projects/shared-meet-components/src/lib/pages/video-room/video-room.component.ts @@ -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);