Преглед на файлове

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

dev1
bgrozev преди 2 години
родител
ревизия
6fa2876d61
No account linked to committer's email address
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3
    3
      modules/xmpp/ChatRoom.js

+ 3
- 3
modules/xmpp/ChatRoom.js Целия файл

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

Loading…
Отказ
Запис