Skip to content

Commit

Permalink
ov-components: Removed unnecessary code
Browse files Browse the repository at this point in the history
Removed getTokenMetadata method
  • Loading branch information
CSantosM committed Oct 23, 2024
1 parent c53b1b5 commit 897404b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion openvidu-components-angular/migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ npm install [email protected]
- `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`):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export class OpenViduService {
private localTracks: LocalTrack[] = [];
private livekitToken = '';
private livekitUrl = '';
private livekitRoomAdmin = false;
private log: ILogger;

/**
Expand Down Expand Up @@ -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
Expand All @@ -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');
Expand Down

0 comments on commit 897404b

Please sign in to comment.