Commit e48015df authored by JC Brand's avatar JC Brand

Fixes #575

parent d527f693
......@@ -23,6 +23,7 @@
"lodash/prefer-noop": "off",
"lodash/prefer-lodash-typecheck": "off",
"lodash/preferred-alias": "off",
"lodash/prefer-get": "off",
"accessor-pairs": "error",
"array-bracket-spacing": "off",
"array-callback-return": "error",
......
......@@ -18,6 +18,8 @@
`chatbox` attributes, instead of just the stanza. [jcbrand]
- Render nickname form when entering a room via invitation. [jcbrand]
- #567 Unreaded message count reset on page load [novokrest]
- #575 Logging out from converse.js doesn't clear the connection status from the
sessionStorage [jcbrand]
- #591 Unread message counter is reset when the chatbox is closed [novokrest]
- #754 Show unread messages next to roster contacts. [jcbrand]
- #864 Remove all inline CSS to comply with strict Content-Security-Policy headers [mathiasertl]
......
......@@ -92,8 +92,11 @@
clearSession: function () {
this.__super__.clearSession.apply(this, arguments);
if (_.isUndefined(this.connection) && this.connection.connected) {
this.chatboxes.get('controlbox').save({'connected': false});
var controlbox = this.chatboxes.get('controlbox');
if (controlbox &&
controlbox.collection &&
controlbox.collection.browserStorage) {
controlbox.save({'connected': false});
}
},
......
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