frontend: Refactor meeting and room components to use accessUrl instead of moderatorUrl
This commit is contained in:
parent
1414566f7f
commit
6e99b21965
@ -21,13 +21,11 @@ export class MeetingService {
|
||||
/**
|
||||
* Copies the meeting speaker link to the clipboard.
|
||||
*/
|
||||
copyMeetingSpeakerLink(room: MeetRoom): void {
|
||||
const speakerLink = room.speakerUrl;
|
||||
this.clipboard.copy(speakerLink);
|
||||
copyMeetingSpeakerLink({ accessUrl }: MeetRoom): void {
|
||||
this.clipboard.copy(accessUrl);
|
||||
this.notificationService.showSnackbar('Speaker link copied to clipboard');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Ends a meeting by its room ID.
|
||||
*
|
||||
|
||||
@ -131,10 +131,10 @@ export class RoomWizardComponent implements OnInit {
|
||||
async createRoomBasic(roomName?: string) {
|
||||
try {
|
||||
// Create room with basic config including e2ee: false (default settings)
|
||||
const { moderatorUrl } = await this.roomService.createRoom({ roomName });
|
||||
const { accessUrl } = await this.roomService.createRoom({ roomName });
|
||||
|
||||
// Extract the path and query parameters from the moderator URL and navigate to it
|
||||
const url = new URL(moderatorUrl);
|
||||
const url = new URL(accessUrl);
|
||||
const pathWithParams = url.pathname + url.search + url.hash;
|
||||
await this.navigationService.redirectTo(pathWithParams);
|
||||
} catch (error) {
|
||||
@ -162,10 +162,10 @@ export class RoomWizardComponent implements OnInit {
|
||||
this.notificationService.showSnackbar('Room updated successfully');
|
||||
} else {
|
||||
// Create new room
|
||||
const { moderatorUrl } = await this.roomService.createRoom(roomOptions);
|
||||
const { accessUrl } = await this.roomService.createRoom(roomOptions);
|
||||
|
||||
// Extract the path and query parameters from the moderator URL and navigate to it
|
||||
const url = new URL(moderatorUrl);
|
||||
const url = new URL(accessUrl);
|
||||
const pathWithParams = url.pathname + url.search + url.hash;
|
||||
await this.navigationService.redirectTo(pathWithParams);
|
||||
}
|
||||
|
||||
@ -205,8 +205,8 @@ export class RoomsComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
private openRoom(room: MeetRoom) {
|
||||
window.open(room.moderatorUrl, '_blank');
|
||||
private openRoom({ accessUrl }: MeetRoom) {
|
||||
window.open(accessUrl, '_blank');
|
||||
}
|
||||
|
||||
private async editRoomConfig(room: MeetRoom) {
|
||||
@ -218,13 +218,13 @@ export class RoomsComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
private copyModeratorLink(room: MeetRoom) {
|
||||
this.clipboard.copy(room.moderatorUrl);
|
||||
private copyModeratorLink({ accessUrl }: MeetRoom) {
|
||||
this.clipboard.copy(accessUrl);
|
||||
this.notificationService.showSnackbar('Moderator link copied to clipboard');
|
||||
}
|
||||
|
||||
private copySpeakerLink(room: MeetRoom) {
|
||||
this.clipboard.copy(room.speakerUrl);
|
||||
private copySpeakerLink({ accessUrl }: MeetRoom) {
|
||||
this.clipboard.copy(accessUrl);
|
||||
this.notificationService.showSnackbar('Speaker link copied to clipboard');
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user