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 {
|
try {
|
||||||
await this.generateParticipantToken();
|
await this.generateParticipantToken();
|
||||||
|
await this.addParticipantNameToUrl();
|
||||||
await this.roomService.loadRoomPreferences(this.roomId);
|
await this.roomService.loadRoomPreferences(this.roomId);
|
||||||
this.showMeeting = true;
|
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) {
|
onRoomCreated(room: Room) {
|
||||||
room.on(
|
room.on(
|
||||||
RoomEvent.DataReceived,
|
RoomEvent.DataReceived,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user