Commit 021143d6 authored by JC Brand's avatar JC Brand

Bugfix. Don't clear roster when tearing down

We do that in `clearSession` and otherwise when we auto-reconnect we end
up without a roster.
parent 7861ed7b
......@@ -948,9 +948,6 @@ converse.plugins.add('converse-roster', {
p.save({'show': 'offline'}, {'silent': true})
});
}
if (_converse.roster) {
_converse.roster.reset();
}
});
_converse.api.listen.on('clearSession', () => {
......@@ -981,7 +978,7 @@ converse.plugins.add('converse-roster', {
if (_converse.haveResumed()) {
_converse.presences.fetch();
} else {
_converse.presences.browserStorage._clear();
_converse.presences.clearSession();
}
/**
* Triggered once the _converse.Presences collection has been
......
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