frontend: change update participant role logic to not save new room secret in local storage
This commit is contained in:
parent
12b943764e
commit
bc58d15a20
@ -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({
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user