[mirotalksfu] - fix popup msg on lobby

هذا الالتزام موجود في:
Miroslav Pejic
2023-09-05 15:11:29 +02:00
الأصل 832899c17b
التزام 372c3d6b1e
2 ملفات معدلة مع 4 إضافات و4 حذوفات

عرض الملف

@@ -3925,7 +3925,7 @@ class RoomClient {
// ROOM ACTION // ROOM ACTION
// #################################################### // ####################################################
roomAction(action, emit = true) { roomAction(action, emit = true, popup = true) {
let data = { let data = {
room_id: this.room_id, room_id: this.room_id,
peer_id: this.peer_id, peer_id: this.peer_id,
@@ -3987,11 +3987,11 @@ class RoomClient {
break; break;
case 'lobbyOn': case 'lobbyOn':
this.socket.emit('roomAction', data); this.socket.emit('roomAction', data);
this.roomStatus(action); if (popup) this.roomStatus(action);
break; break;
case 'lobbyOff': case 'lobbyOff':
this.socket.emit('roomAction', data); this.socket.emit('roomAction', data);
this.roomStatus(action); if (popup) this.roomStatus(action);
break; break;
} }
} else { } else {

عرض الملف

@@ -104,7 +104,7 @@ function handleRules(isPresenter) {
//... //...
isLobbyEnabled = lsSettings.lobby; isLobbyEnabled = lsSettings.lobby;
switchLobby.checked = isLobbyEnabled; switchLobby.checked = isLobbyEnabled;
rc.roomAction(isLobbyEnabled ? 'lobbyOn' : 'lobbyOff'); rc.roomAction(isLobbyEnabled ? 'lobbyOn' : 'lobbyOff', true, false);
//... //...
} }
// main. settings... // main. settings...