[mirotalksfu] - fix typo
هذا الالتزام موجود في:
@@ -255,7 +255,7 @@ io.on('connection', (socket) => {
|
|||||||
};
|
};
|
||||||
if (data.password == roomList.get(socket.room_id).getPassword()) {
|
if (data.password == roomList.get(socket.room_id).getPassword()) {
|
||||||
roomData.room = roomList.get(socket.room_id).toJson();
|
roomData.room = roomList.get(socket.room_id).toJson();
|
||||||
roomData.password = 'OK'
|
roomData.password = 'OK';
|
||||||
roomList.get(socket.room_id).sendTo(socket.id, 'roomPassword', roomData);
|
roomList.get(socket.room_id).sendTo(socket.id, 'roomPassword', roomData);
|
||||||
} else {
|
} else {
|
||||||
roomList.get(socket.room_id).sendTo(socket.id, 'roomPassword', roomData);
|
roomList.get(socket.room_id).sendTo(socket.id, 'roomPassword', roomData);
|
||||||
|
|||||||
@@ -2079,7 +2079,7 @@ class RoomClient {
|
|||||||
this.RoomPassword = pwd;
|
this.RoomPassword = pwd;
|
||||||
},
|
},
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
data.password = this.RoomPassword;
|
data.password = this.RoomPassword;
|
||||||
this.socket.emit('roomAction', data);
|
this.socket.emit('roomAction', data);
|
||||||
this.roomStatus(action);
|
this.roomStatus(action);
|
||||||
});
|
});
|
||||||
@@ -2099,7 +2099,7 @@ class RoomClient {
|
|||||||
case 'lock':
|
case 'lock':
|
||||||
this.sound('locked');
|
this.sound('locked');
|
||||||
this.event(_EVENTS.roomLock);
|
this.event(_EVENTS.roomLock);
|
||||||
this.userLog('info', '🔒 LOCKED the room with the password: ' + this.RoomPassword, 'top-end');
|
this.userLog('info', '🔒 LOCKED the room by the password', 'top-end');
|
||||||
break;
|
break;
|
||||||
case 'unlock':
|
case 'unlock':
|
||||||
this.event(_EVENTS.roomUnlock);
|
this.event(_EVENTS.roomUnlock);
|
||||||
@@ -2113,7 +2113,7 @@ class RoomClient {
|
|||||||
case 'OK':
|
case 'OK':
|
||||||
this.joinAllowed(data.room);
|
this.joinAllowed(data.room);
|
||||||
break;
|
break;
|
||||||
case 'KO':
|
case 'KO':
|
||||||
this.roomIsLocked();
|
this.roomIsLocked();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2148,7 +2148,7 @@ class RoomClient {
|
|||||||
let data = {
|
let data = {
|
||||||
action: 'checkPassword',
|
action: 'checkPassword',
|
||||||
password: this.RoomPassword,
|
password: this.RoomPassword,
|
||||||
}
|
};
|
||||||
this.socket.emit('roomAction', data);
|
this.socket.emit('roomAction', data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم