From 15c718f253deeee87291f2e2c2d1d3cbab876eb0 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Sat, 26 Aug 2023 15:07:14 +0200 Subject: [PATCH] [mirotalksfu] - fix lock room on direct join --- public/js/RoomClient.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index b12e09f4..e759c23b 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -3927,9 +3927,9 @@ class RoomClient { this.socket .request('getPeerCounts') .then( - async function (data) { + async function (res) { // Only the presenter can lock the room - if (isPresenter || data.peerCounts == 1) { + if (isPresenter || res.peerCounts == 1) { isPresenter = true; data.password = room_password; this.socket.emit('roomAction', data);