Commit 26b45be9 authored by JC Brand's avatar JC Brand

Clear the roster when a BOSH session can't be restored

Fixes #555
parent 04978265
......@@ -6209,7 +6209,8 @@
try {
return this.connection.restore(this.jid, this.onConnectStatusChanged);
} catch (e) {
converse.log("Could not restore session for jid: "+this.jid+" Error message: "+e.message);
this.log("Could not restore session for jid: "+this.jid+" Error message: "+e.message);
this.clearSession(); // If there's a roster, we want to clear it (see #555)
}
} else { // Not keepalive
if (this.jid && this.sid && this.rid) {
......@@ -6241,7 +6242,8 @@
try {
return this.connection.restore(undefined, this.onConnectStatusChanged);
} catch (e) {
converse.log("Could not restore sessions. Error message: "+e.message);
this.log("Could not restore session. Error message: "+e.message);
this.clearSession(); // If there's a roster, we want to clear it (see #555)
}
}
if (this.auto_login) {
......
......@@ -16,7 +16,9 @@
See [include_offline_state](https://conversejs.org/docs/html/configuration.html#include_offline_state) for details. [jcbrand]
- A chatroom invite might come from someone not in your roster list. [ben]
- #487 Empty the resources array when the resource is null [rlanvin]
- #559 Optimize auto_reconnect function. [m0cs]
- #534 Updated Russian translation [LaconicTranslator]
- #555 The status restored from sessionStorage is never updated [jcbrand]
- #559 Remove reconnection timer once connected succesfully [m0cs]
## 0.10.0 (2015-11-05)
......
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