Commit cb288341 authored by JC Brand's avatar JC Brand

Bugfix. Login form doesn't render after logging out

when auto_reconnect = false
parent 1545018e
# Changelog # 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) ## 1.0.2 (2016-05-24)
- Bugfix. Bind `sendPresence` to the right context. Bug that slipped in during - Bugfix. Bind `sendPresence` to the right context. Bug that slipped in during
......
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
view.$('#controlbox-tabs').empty(); view.$('#controlbox-tabs').empty();
view.renderLoginPanel(); view.renderLoginPanel();
} }
return result;
}, },
_tearDown: function () { _tearDown: function () {
......
...@@ -442,7 +442,7 @@ ...@@ -442,7 +442,7 @@
}, 1000); }, 1000);
this.onDisconnected = function (condition) { this.onDisconnected = function (condition) {
if (!converse.auto_reconnect) { return; } if (!converse.auto_reconnect) { return 'disconnected'; }
if (converse.disconnection_cause === Strophe.Status.CONNFAIL) { if (converse.disconnection_cause === Strophe.Status.CONNFAIL) {
converse.reconnect(condition); converse.reconnect(condition);
return 'reconnecting'; return 'reconnecting';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment