Bugfix. Login form doesn't render after logging out

when auto_reconnect = false
This commit is contained in:
JC Brand 2016-05-24 09:02:04 +00:00
parent 1545018edf
commit cb288341fb
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# Changelog
## 1.0.2 (Unreleased)
- Bugfix. Login form doesn't render after logging out, when `auto_reconnect = false`
[jcbrand]
## 1.0.2 (2016-05-24)
- Bugfix. Bind `sendPresence` to the right context. Bug that slipped in during

View File

@ -57,6 +57,7 @@
view.$('#controlbox-tabs').empty();
view.renderLoginPanel();
}
return result;
},
_tearDown: function () {

View File

@ -442,7 +442,7 @@
}, 1000);
this.onDisconnected = function (condition) {
if (!converse.auto_reconnect) { return; }
if (!converse.auto_reconnect) { return 'disconnected'; }
if (converse.disconnection_cause === Strophe.Status.CONNFAIL) {
converse.reconnect(condition);
return 'reconnecting';