|
|
|
@ -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);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|