|
@@ -40,9 +40,9 @@ class Invite {
|
40
|
40
|
|
41
|
41
|
this.conference.on(ConferenceEvents.USER_ROLE_CHANGED, (id) => {
|
42
|
42
|
if (APP.conference.isLocalId(id)
|
43
|
|
- && this.isModerator !== this.conference.isModerator) {
|
|
43
|
+ && this.isModerator !== this.conference.isModerator()) {
|
44
|
44
|
|
45
|
|
- this.setModerator(this.conference.isModerator);
|
|
45
|
+ this.setModerator(this.conference.isModerator());
|
46
|
46
|
}
|
47
|
47
|
});
|
48
|
48
|
|
|
@@ -116,7 +116,6 @@ class Invite {
|
116
|
116
|
* creating view object using as a model this module
|
117
|
117
|
*/
|
118
|
118
|
initDialog() {
|
119
|
|
- this.password = this.getPassword();
|
120
|
119
|
this.view = new InviteDialogView(this);
|
121
|
120
|
}
|
122
|
121
|
|
|
@@ -191,10 +190,8 @@ class Invite {
|
191
|
190
|
* @param isLocked
|
192
|
191
|
*/
|
193
|
192
|
setLockedFromElsewhere(isLocked) {
|
194
|
|
- // isLocked can be 1, true or false
|
195
|
|
- let newLockState = (isLocked === 1) || isLocked;
|
196
|
193
|
let oldLockState = this.roomLocker.isLocked;
|
197
|
|
- if (oldLockState !== newLockState) {
|
|
194
|
+ if (oldLockState !== isLocked) {
|
198
|
195
|
this.roomLocker.lockedElsewhere = isLocked;
|
199
|
196
|
APP.UI.emitEvent(UIEvents.TOGGLE_ROOM_LOCK);
|
200
|
197
|
this.updateView();
|