Skip to content

Commit 1621fa5

Browse files
committed
Only fetch if not in config card
1 parent 338c986 commit 1621fa5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

frontend/src/app/video-room/video-room.component.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,11 @@ export class VideoRoomComponent implements OnInit, OnDestroy {
121121

122122
@HostListener('window:beforeunload')
123123
beforeunloadHandler() {
124-
this.openViduSrv.syncRemoveUser(this.mySessionId);
125-
if(this.localUsers[0].isHandRaised()) {
126-
this.roomService.syncLowerHand(this.mySessionId, this.localUsers[0].getConnectionId());
124+
if(!this.showDialogChooseRoom) {
125+
this.openViduSrv.syncRemoveUser(this.mySessionId);
126+
if(this.localUsers[0].isHandRaised()) {
127+
this.roomService.syncLowerHand(this.mySessionId, this.localUsers[0].getConnectionId());
128+
}
127129
}
128130
this.exitSession();
129131
}

0 commit comments

Comments
 (0)