Kaynağa Gözat

fix(conference): crash with anonymous domain config

master
paweldomas 8 yıl önce
ebeveyn
işleme
52847bd28d
1 değiştirilmiş dosya ile 6 ekleme ve 3 silme
  1. 6
    3
      conference.js

+ 6
- 3
conference.js Dosyayı Görüntüle

@@ -294,9 +294,10 @@ function changeLocalDisplayName(nickname = '') {
294 294
 }
295 295
 
296 296
 class ConferenceConnector {
297
-    constructor(resolve, reject) {
297
+    constructor(resolve, reject, invite) {
298 298
         this._resolve = resolve;
299 299
         this._reject = reject;
300
+        this._invite = invite;
300 301
         this.reconnectTimeout = null;
301 302
         room.on(ConferenceEvents.CONFERENCE_JOINED,
302 303
             this._handleConferenceJoined.bind(this));
@@ -340,7 +341,8 @@ class ConferenceConnector {
340 341
             }, 5000);
341 342
 
342 343
             // notify user that auth is required
343
-            AuthHandler.requireAuth(room, this.invite.getRoomLocker().password);
344
+            AuthHandler.requireAuth(
345
+                room, this._invite.getRoomLocker().password);
344 346
             break;
345 347
 
346 348
         case ConferenceErrors.RESERVATION_ERROR:
@@ -521,7 +523,8 @@ export default {
521 523
                 // XXX The API will take care of disconnecting from the XMPP
522 524
                 // server (and, thus, leaving the room) on unload.
523 525
                 return new Promise((resolve, reject) => {
524
-                    (new ConferenceConnector(resolve, reject)).connect();
526
+                    (new ConferenceConnector(
527
+                        resolve, reject, this.invite)).connect();
525 528
                 });
526 529
         });
527 530
     },

Loading…
İptal
Kaydet