Make sure to emit upon reconnection

This commit is contained in:
JC Brand 2017-10-31 18:06:28 +01:00
parent 2d747bb287
commit e8e20fbf93

View File

@ -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');