Commit 098c8e54 authored by JC Brand's avatar JC Brand

Make sure to emit upon reconnection

parent 2bce9e72
......@@ -748,8 +748,10 @@
if (ignore_cache) {
_converse.send_initial_presence = true;
_converse.roster.fetchFromServer()
.then(_converse.sendInitialPresence)
.catch(_converse.sendInitialPresence);
.then(() => {
_converse.emit('rosterContactsFetched');
_converse.sendInitialPresence();
}).catch(_converse.sendInitialPresence);
} else {
_converse.rostergroups.fetchRosterGroups().then(() => {
_converse.emit('rosterGroupsFetched');
......
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