Commit 9afc344b authored by JC Brand's avatar JC Brand

We no longer clear the whole roster, only presence data

parent da06a62b
......@@ -945,7 +945,7 @@
_converse.log(
"Could not restore session for jid: "+
this.jid+" Error message: "+e.message, Strophe.LogLevel.WARN);
this.clearSession(); // If there's a roster, we want to clear it (see #555)
this.clearSession(); // We want to clear presences (see #555)
return false;
}
};
......
......@@ -15,12 +15,6 @@
dependencies: ["converse-vcard"],
overrides: {
_tearDown () {
this.__super__._tearDown.apply(this, arguments);
}
},
initialize () {
/* The initialize function gets called as soon as the plugin is
* loaded by converse.js's plugin machinery.
......@@ -766,8 +760,8 @@
});
_converse.api.listen.on('clearSession', () => {
if (!_.isUndefined(this.roster)) {
this.roster.browserStorage._clear();
if (_converse.presences) {
_converse.presences.browserStorage._clear();
}
});
......
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