[mirotalksfu] - fix lock room on direct join
هذا الالتزام موجود في:
@@ -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);
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم