Browse Source

fix(conference): crash with anonymous domain config

master
paweldomas 9 years ago
parent
commit
52847bd28d
1 changed files with 6 additions and 3 deletions
  1. 6
    3
      conference.js

+ 6
- 3
conference.js View File

294
 }
294
 }
295
 
295
 
296
 class ConferenceConnector {
296
 class ConferenceConnector {
297
-    constructor(resolve, reject) {
297
+    constructor(resolve, reject, invite) {
298
         this._resolve = resolve;
298
         this._resolve = resolve;
299
         this._reject = reject;
299
         this._reject = reject;
300
+        this._invite = invite;
300
         this.reconnectTimeout = null;
301
         this.reconnectTimeout = null;
301
         room.on(ConferenceEvents.CONFERENCE_JOINED,
302
         room.on(ConferenceEvents.CONFERENCE_JOINED,
302
             this._handleConferenceJoined.bind(this));
303
             this._handleConferenceJoined.bind(this));
340
             }, 5000);
341
             }, 5000);
341
 
342
 
342
             // notify user that auth is required
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
             break;
346
             break;
345
 
347
 
346
         case ConferenceErrors.RESERVATION_ERROR:
348
         case ConferenceErrors.RESERVATION_ERROR:
521
                 // XXX The API will take care of disconnecting from the XMPP
523
                 // XXX The API will take care of disconnecting from the XMPP
522
                 // server (and, thus, leaving the room) on unload.
524
                 // server (and, thus, leaving the room) on unload.
523
                 return new Promise((resolve, reject) => {
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…
Cancel
Save