Browse Source

Use the XMPP connection's options instead of the conference options for Moderator. (#2202)

dev1
bgrozev 2 years ago
parent
commit
6fa2876d61
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      modules/xmpp/ChatRoom.js

+ 3
- 3
modules/xmpp/ChatRoom.js View File

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

Loading…
Cancel
Save