|
@@ -343,9 +343,6 @@ function initConference(localTracks, connection) {
|
343
|
343
|
room.setDisplayName(nickname);
|
344
|
344
|
});
|
345
|
345
|
|
346
|
|
- room.on(ConferenceErrors.PASSWORD_REQUIRED, function () {
|
347
|
|
- // FIXME handle
|
348
|
|
- });
|
349
|
346
|
room.on(ConferenceErrors.CONNECTION_ERROR, function () {
|
350
|
347
|
// FIXME handle
|
351
|
348
|
});
|
|
@@ -366,25 +363,26 @@ function initConference(localTracks, connection) {
|
366
|
363
|
);
|
367
|
364
|
});
|
368
|
365
|
|
|
366
|
+ room.on(ConferenceEvents.DTMF_SUPPORT_CHANGED, function (isDTMFSupported) {
|
|
367
|
+ APP.UI.updateDTMFSupport(isDTMFSupported);
|
|
368
|
+ });
|
|
369
|
+
|
369
|
370
|
return new Promise(function (resolve, reject) {
|
370
|
371
|
room.on(ConferenceEvents.CONFERENCE_JOINED, resolve);
|
371
|
372
|
|
372
|
|
- room.on(ConferenceErrors.ROOM_PASSWORD_REQUIRED, function () {
|
|
373
|
+ room.on(ConferenceErrors.PASSWORD_REQUIRED, function () {
|
373
|
374
|
APP.UI.markRoomLocked(true);
|
374
|
375
|
roomLocker.requirePassword().then(function () {
|
375
|
376
|
room.join(roomLocker.password);
|
376
|
377
|
});
|
377
|
378
|
});
|
378
|
379
|
|
|
380
|
+ // FIXME handle errors here
|
|
381
|
+
|
379
|
382
|
APP.UI.closeAuthenticationDialog();
|
380
|
383
|
room.join();
|
381
|
384
|
}).catch(function (err) {
|
382
|
|
- if (err[0] === ConferenceErrors.PASSWORD_REQUIRED) {
|
383
|
|
- // FIXME ask for password and try again
|
384
|
|
- return initConference(localTracks, connection);
|
385
|
|
- }
|
386
|
|
-
|
387
|
|
- // FIXME else notify that we cannot conenct to the room
|
|
385
|
+ // FIXME notify that we cannot conenct to the room
|
388
|
386
|
|
389
|
387
|
throw new Error(err[0]);
|
390
|
388
|
});
|