frontend: change update participant role logic to not save new room secret in local storage

This commit is contained in:
juancarmore 2025-08-22 22:45:29 +02:00
parent 12b943764e
commit bc58d15a20
2 changed files with 5 additions and 3 deletions

View File

@ -376,7 +376,7 @@ export class MeetingComponent implements OnInit {
if (!secret) return;
this.roomSecret = secret;
this.roomService.setRoomSecret(secret);
this.roomService.setRoomSecret(secret, false);
try {
await this.participantService.refreshParticipantToken({

View File

@ -39,9 +39,11 @@ export class RoomService {
return this.roomId;
}
setRoomSecret(secret: string) {
setRoomSecret(secret: string, updateStorage = true) {
this.roomSecret = secret;
this.sessionStorageService.setRoomSecret(this.roomId, secret);
if (updateStorage) {
this.sessionStorageService.setRoomSecret(this.roomId, secret);
}
}
getRoomSecret(): string {