[mirotalksfu] - lock the room by the password

هذا الالتزام موجود في:
Miroslav Pejic
2021-11-04 20:16:09 +01:00
الأصل b2c03280cb
التزام e055d2128b
3 ملفات معدلة مع 135 إضافات و17 حذوفات

عرض الملف

@@ -11,6 +11,7 @@ module.exports = class Room {
this.router = null;
this.io = io;
this._isLocked = false;
this._roomPassword = null;
this.peers = new Map();
this.createTheRouter();
}
@@ -193,11 +194,15 @@ module.exports = class Room {
// ROOM STATUS
// ####################################################
getPassword() {
return this._roomPassword;
}
isLocked() {
return this._isLocked;
}
setLocked(status) {
setLocked(status, password) {
this._isLocked = status;
this._roomPassword = password;
}
// ####################################################