瀏覽代碼

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

tags/v0.0.2
bgrozev 2 年之前
父節點
當前提交
6fa2876d61
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      modules/xmpp/ChatRoom.js

+ 3
- 3
modules/xmpp/ChatRoom.js 查看文件

@@ -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…
取消
儲存