Tries to fix connecting after XMPP authentication is requested.
This commit is contained in:
parent
9ee24d7eab
commit
745417be18
|
@ -311,12 +311,9 @@ function registerListeners() {
|
||||||
APP.xmpp.addListener(XMPPEvents.CREATE_ANSWER_ERROR, function () {
|
APP.xmpp.addListener(XMPPEvents.CREATE_ANSWER_ERROR, function () {
|
||||||
messageHandler.showError();
|
messageHandler.showError();
|
||||||
});
|
});
|
||||||
APP.xmpp.addListener(XMPPEvents.PROMPT_FOR_LOGIN, function () {
|
APP.xmpp.addListener(XMPPEvents.PROMPT_FOR_LOGIN, function (callback) {
|
||||||
// FIXME: re-use LoginDialog which supports retries
|
// FIXME: re-use LoginDialog which supports retries
|
||||||
// FIXME^2: This looks like a bug...connect is undefined.
|
UI.showLoginPopup(callback);
|
||||||
/* jshint -W117 */
|
|
||||||
UI.showLoginPopup(connect);
|
|
||||||
/* jshint +W117 */
|
|
||||||
});
|
});
|
||||||
|
|
||||||
APP.xmpp.addListener(XMPPEvents.FOCUS_DISCONNECTED, function (focusComponent, retrySec) {
|
APP.xmpp.addListener(XMPPEvents.FOCUS_DISCONNECTED, function (focusComponent, retrySec) {
|
||||||
|
|
|
@ -306,7 +306,7 @@ var XMPP = {
|
||||||
return Strophe.getStatusString(status);
|
return Strophe.getStatusString(status);
|
||||||
},
|
},
|
||||||
promptLogin: function () {
|
promptLogin: function () {
|
||||||
eventEmitter.emit(XMPPEvents.PROMPT_FOR_LOGIN);
|
eventEmitter.emit(XMPPEvents.PROMPT_FOR_LOGIN, connect);
|
||||||
},
|
},
|
||||||
joinRoom: function(roomName, useNicks, nick) {
|
joinRoom: function(roomName, useNicks, nick) {
|
||||||
var roomjid = roomName;
|
var roomjid = roomName;
|
||||||
|
|
Loading…
Reference in New Issue