From 6f19c35d43a6f56a8f6edee92f591f1d09a4c5ff Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Mon, 9 Jun 2025 17:47:59 +0200 Subject: [PATCH] refactor: remove unused roomPreferences and featureFlags from VideoRoomComponent --- .../pages/video-room/video-room.component.ts | 36 +------------------ 1 file changed, 1 insertion(+), 35 deletions(-) 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 e6a9f1c..a7d0826 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 @@ -7,7 +7,7 @@ import { MatCardModule } from '@angular/material/card'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatInputModule } from '@angular/material/input'; import { ActivatedRoute } from '@angular/router'; -import { MeetRecordingAccess, MeetRoomPreferences, OpenViduMeetPermissions, ParticipantRole } from '@lib/typings/ce'; +import { OpenViduMeetPermissions, ParticipantRole } from '@lib/typings/ce'; import { ApiDirectiveModule, OpenViduComponentsUiModule, @@ -70,25 +70,6 @@ export class VideoRoomComponent implements OnInit, OnDestroy { canPublishScreen: false }; - roomPreferences: MeetRoomPreferences = { - recordingPreferences: { - enabled: true, - allowAccessTo: MeetRecordingAccess.ADMIN_MODERATOR_PUBLISHER - }, - chatPreferences: { enabled: true }, - virtualBackgroundPreferences: { enabled: true } - }; - featureFlags = { - videoEnabled: true, - audioEnabled: true, - showMicrophone: true, - showCamera: true, - showScreenShare: true, - showPrejoin: true, - showChat: true, - showRecording: true, - showBackgrounds: true - }; features$!: Observable; constructor( @@ -103,9 +84,6 @@ export class VideoRoomComponent implements OnInit, OnDestroy { protected sessionStorageService: SessionStorageService, protected featureConfService: FeatureConfigurationService ) { - this.featureConfService.features$.subscribe((features) => { - console.log('!!!!!!Feature flags updated:', features); - }); this.features$ = this.featureConfService.features$; } @@ -295,16 +273,4 @@ export class VideoRoomComponent implements OnInit, OnDestroy { console.error(error); } } - - /** - * Configures the feature flags based on participant permissions. - */ - private applyParticipantPermissions() { - if (this.featureFlags.showChat) { - this.featureFlags.showChat = this.participantPermissions.canChat; - } - if (this.featureFlags.showRecording) { - this.featureFlags.showRecording = this.participantPermissions.canRecord; - } - } }