Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

finished "on the fly" auth

isymchychebaa6576784a
diff --git a/modules/AuthHandler.js b/modules/AuthHandler.js
index 20ff7fbd52..e525bcf82c 100644
--- a/modules/AuthHandler.js
+++ b/modules/AuthHandler.js
@@ -48,11 +48,18 @@ function doXmppAuth (room, lockPassword) {
connection.disconnect();
loginDialog.displayError(err);
});
- // FIXME finish "on the fly" auth
- room.room.moderator.allocateConferenceFocus(function () {
+
+ newRoom.room.moderator.allocateConferenceFocus(function () {
connection.disconnect();
loginDialog.close();
- room.join(lockPassword);
+
+ if (room.isJoined()) {
+ // just reallocate focus if already joined
+ room.room.moderator.allocateConferenceFocus();
+ } else {
+ // or join
+ room.join(lockPassword);
+ }
});
}, function (err) {