From 897404b54b654f348e389ae28eb1d7e3baefa023 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Wed, 23 Oct 2024 16:55:57 +0200 Subject: [PATCH] ov-components: Removed unnecessary code Removed getTokenMetadata method --- openvidu-components-angular/migration-guide.md | 1 - .../src/lib/services/openvidu/openvidu.service.ts | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/openvidu-components-angular/migration-guide.md b/openvidu-components-angular/migration-guide.md index d0c536cd87..7c5e649491 100644 --- a/openvidu-components-angular/migration-guide.md +++ b/openvidu-components-angular/migration-guide.md @@ -204,7 +204,6 @@ npm install openvidu-components-angular@3.0.0 - `publishScreen` and `unpublishScreen` methods have been renamed to `setScreenShareEnabled` - `isSttReadyObs` observable has been deleted - `connectRoom` method has been added - - `getRoomMetadata` method has been added to get the metadata of the room - `getRoomName` method has been added to get the name of the room - ##### Panel Service (`PanelService`): diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/services/openvidu/openvidu.service.ts b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/services/openvidu/openvidu.service.ts index 5b27e4eb6b..e53c25478c 100644 --- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/services/openvidu/openvidu.service.ts +++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/services/openvidu/openvidu.service.ts @@ -38,7 +38,6 @@ export class OpenViduService { private localTracks: LocalTrack[] = []; private livekitToken = ''; private livekitUrl = ''; - private livekitRoomAdmin = false; private log: ILogger; /** @@ -129,15 +128,6 @@ export class OpenViduService { return this.room?.name; } - /** - * Returns the room metadata from the token - * @returns - */ - getRoomMetadata(): { roomAdmin: boolean } { - return { - roomAdmin: this.livekitRoomAdmin - }; - } /** * Returns if the room is connected or not @@ -154,7 +144,6 @@ export class OpenViduService { const livekitData = this.extractLivekitData(token, livekitUrl); this.livekitToken = token; this.livekitUrl = livekitData.livekitUrl; - this.livekitRoomAdmin = livekitData.livekitRoomAdmin; if (!this.livekitUrl) { this.log.e('LiveKit URL is not defined. Please, check the livekitUrl parameter of the VideoConferenceComponent');