Make sure to emit upon reconnection
This commit is contained in:
parent
2bce9e7272
commit
098c8e545c
@ -748,8 +748,10 @@
|
|||||||
if (ignore_cache) {
|
if (ignore_cache) {
|
||||||
_converse.send_initial_presence = true;
|
_converse.send_initial_presence = true;
|
||||||
_converse.roster.fetchFromServer()
|
_converse.roster.fetchFromServer()
|
||||||
.then(_converse.sendInitialPresence)
|
.then(() => {
|
||||||
.catch(_converse.sendInitialPresence);
|
_converse.emit('rosterContactsFetched');
|
||||||
|
_converse.sendInitialPresence();
|
||||||
|
}).catch(_converse.sendInitialPresence);
|
||||||
} else {
|
} else {
|
||||||
_converse.rostergroups.fetchRosterGroups().then(() => {
|
_converse.rostergroups.fetchRosterGroups().then(() => {
|
||||||
_converse.emit('rosterGroupsFetched');
|
_converse.emit('rosterGroupsFetched');
|
||||||
|
Loading…
Reference in New Issue
Block a user