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