frontend: add participant name as a query parameter to the URL

This commit is contained in:
juancarmore 2025-08-14 19:41:29 +02:00
parent 44448e061b
commit 2ce986c3dd

View File

@ -265,6 +265,7 @@ export class MeetingComponent implements OnInit {
try {
await this.generateParticipantToken();
await this.addParticipantNameToUrl();
await this.roomService.loadRoomPreferences(this.roomId);
this.showMeeting = true;
@ -321,6 +322,15 @@ export class MeetingComponent implements OnInit {
}
}
/**
* Add participant name as a query parameter to the URL
*/
private async addParticipantNameToUrl() {
await this.navigationService.updateQueryParamsFromUrl(this.route.snapshot.queryParams, {
'participant-name': this.participantName
});
}
onRoomCreated(room: Room) {
room.on(
RoomEvent.DataReceived,