|
|
@@ -201,16 +201,16 @@ ChatRoom.prototype.discoRoomInfo = function () {
|
|
201
|
201
|
var getInfo = $iq({type: 'get', to: this.roomjid})
|
|
202
|
202
|
.c('query', {xmlns: Strophe.NS.DISCO_INFO});
|
|
203
|
203
|
|
|
204
|
|
- this.connection.sendIQ(getInfo, (result) => {
|
|
|
204
|
+ this.connection.sendIQ(getInfo, function (result) {
|
|
205
|
205
|
var locked = $(result).find('>query>feature[var="muc_passwordprotected"]').length;
|
|
206
|
206
|
if (locked != this.locked) {
|
|
207
|
207
|
this.eventEmitter.emit(XMPPEvents.MUC_LOCK_CHANGED, locked);
|
|
208
|
208
|
this.locked = locked;
|
|
209
|
209
|
}
|
|
210
|
|
- }, (error) => {
|
|
|
210
|
+ }.bind(this), function (error) {
|
|
211
|
211
|
GlobalOnErrorHandler.callErrorHandler(error);
|
|
212
|
212
|
logger.error("Error getting room info: ", error);
|
|
213
|
|
- });
|
|
|
213
|
+ }.bind(this));
|
|
214
|
214
|
};
|
|
215
|
215
|
|
|
216
|
216
|
|