refactor: remove unused import of Location in VideoRoomComponent

This commit is contained in:
Carlos Santos 2025-06-09 13:47:09 +02:00
parent df0089c323
commit acd0cb9b3d
2 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
// import { Location } from '@angular/common';
import { Component, OnDestroy, OnInit } from '@angular/core';
import { FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';

View File

@ -61,7 +61,7 @@ export class RoomService {
* @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.httpService.getRoom(roomId);
const { moderatorRoomUrl, publisherRoomUrl } = await this.getRoom(roomId);
const publisherUrl = new URL(publisherRoomUrl);
const publisherSecret = publisherUrl.searchParams.get('secret') || '';