|
@@ -113,9 +113,9 @@ export default class ChatRoom extends Listenable {
|
113
|
113
|
* @param {boolean} options.hiddenFromRecorderFeatureEnabled - when set to {@code true} we will check identity tag
|
114
|
114
|
* for node presence.
|
115
|
115
|
*/
|
116
|
|
- constructor(connection, jid, password, XMPP, options) {
|
|
116
|
+ constructor(connection, jid, password, xmpp, options) {
|
117
|
117
|
super();
|
118
|
|
- this.xmpp = XMPP;
|
|
118
|
+ this.xmpp = xmpp;
|
119
|
119
|
this.connection = connection;
|
120
|
120
|
this.roomjid = Strophe.getBareJidFromJid(jid);
|
121
|
121
|
this.myroomjid = jid;
|
|
@@ -132,7 +132,7 @@ export default class ChatRoom extends Listenable {
|
132
|
132
|
this.focusMucJid = null;
|
133
|
133
|
this.noBridgeAvailable = false;
|
134
|
134
|
this.options = options || {};
|
135
|
|
- this.moderator = new Moderator(this.roomjid, this.xmpp, this.eventEmitter, options);
|
|
135
|
+ this.moderator = new Moderator(this.roomjid, this.xmpp, this.eventEmitter, xmpp.options);
|
136
|
136
|
if (typeof this.options.enableLobby === 'undefined' || this.options.enableLobby) {
|
137
|
137
|
this.lobby = new Lobby(this);
|
138
|
138
|
}
|