From 79eb690713f3d522870ddad93629dffc9352eb3e Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Thu, 31 Jul 2025 17:15:50 +0200 Subject: [PATCH] frontend: remove unused getSecrets method from RoomService --- .../src/lib/services/room.service.ts | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/frontend/projects/shared-meet-components/src/lib/services/room.service.ts b/frontend/projects/shared-meet-components/src/lib/services/room.service.ts index 42d391b..2301be8 100644 --- a/frontend/projects/shared-meet-components/src/lib/services/room.service.ts +++ b/frontend/projects/shared-meet-components/src/lib/services/room.service.ts @@ -212,26 +212,6 @@ export class RoomService { this.roomPreferences = preferences; } - /** - * Retrieves the moderator and publisher secrets for a specified room. - * - * This method fetches room information and extracts the secret parameters - * from the moderator and publisher room URLs. - * - * @param roomId - The unique identifier of the room - * @returns A promise that resolves to an object containing both secrets - * @returns moderatorSecret - The secret parameter extracted from the moderator room URL - * @returns publisherSecret - The secret parameter extracted from the publisher room URL - */ - async getSecrets(roomId: string): Promise<{ moderatorSecret: string; publisherSecret: string }> { - const { moderatorRoomUrl, publisherRoomUrl } = await this.getRoom(roomId); - - const publisherUrl = new URL(publisherRoomUrl); - const publisherSecret = publisherUrl.searchParams.get('secret') || ''; - const moderatorUrl = new URL(moderatorRoomUrl); - const moderatorSecret = moderatorUrl.searchParams.get('secret') || ''; - return { publisherSecret, moderatorSecret }; - } /** * Retrieves the role and permissions for a specified room and secret.