frontend: add participant name as a query parameter to the URL
This commit is contained in:
parent
44448e061b
commit
2ce986c3dd
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user