[mirotalksfu] - rb
هذا الالتزام موجود في:
@@ -946,14 +946,6 @@ function startServer() {
|
||||
socket.on('getRoomInfo', async (dataObject, cb) => {
|
||||
if (!roomList.has(socket.room_id)) return;
|
||||
|
||||
const data = checkXSS(dataObject);
|
||||
|
||||
const isPresenter = await isPeerPresenter(socket.room_id, data.peer_name, data.peer_uuid);
|
||||
if (!isPresenter) {
|
||||
log.debug('Get Room Info not allowed', data);
|
||||
return;
|
||||
}
|
||||
|
||||
log.debug('Send Room Info to', data.peer_name);
|
||||
cb(roomList.get(socket.room_id).toJson());
|
||||
});
|
||||
|
||||
@@ -134,6 +134,7 @@ function initClient() {
|
||||
setTippy('stopScreenButton', 'Stop screen share', 'right');
|
||||
setTippy('swapCameraButton', 'Swap the camera', 'right');
|
||||
setTippy('chatButton', 'Toggle the chat', 'right');
|
||||
setTippy('participantsButton', 'Toggle participants', 'right');
|
||||
setTippy('whiteboardButton', 'Toggle the whiteboard', 'right');
|
||||
setTippy('settingsButton', 'Toggle the settings', 'right');
|
||||
setTippy('aboutButton', 'About this project', 'right');
|
||||
|
||||
@@ -2179,13 +2179,7 @@ class RoomClient {
|
||||
}
|
||||
|
||||
async getRoomInfo() {
|
||||
const data = {
|
||||
room_id: this.room_id,
|
||||
peer_name: this.peer_name,
|
||||
peer_id: this.peer_id,
|
||||
peer_uuid: this.peer_uuid,
|
||||
};
|
||||
let room_info = await this.socket.request('getRoomInfo', data);
|
||||
let room_info = await this.socket.request('getRoomInfo');
|
||||
return room_info;
|
||||
}
|
||||
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم