finished "on the fly" auth

This commit is contained in:
isymchych 2015-12-21 15:02:07 +02:00
parent 035e20eceb
commit ebaa657678
1 changed files with 10 additions and 3 deletions

View File

@ -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) {