[mirotalksfu] - fix lock room on direct join

هذا الالتزام موجود في:
Miroslav Pejic
2023-08-26 15:07:14 +02:00
الأصل d36cdd161b
التزام 15c718f253

عرض الملف

@@ -3927,9 +3927,9 @@ class RoomClient {
this.socket this.socket
.request('getPeerCounts') .request('getPeerCounts')
.then( .then(
async function (data) { async function (res) {
// Only the presenter can lock the room // Only the presenter can lock the room
if (isPresenter || data.peerCounts == 1) { if (isPresenter || res.peerCounts == 1) {
isPresenter = true; isPresenter = true;
data.password = room_password; data.password = room_password;
this.socket.emit('roomAction', data); this.socket.emit('roomAction', data);