Commit e90632d6 authored by JC Brand's avatar JC Brand

Bugfix. No roster when reconnecting.

parent a5f76abc
......@@ -722,9 +722,13 @@
converse.setUserJid();
converse.registerPresenceHandler();
converse.chatboxes.registerMessageHandler();
// Give event handlers a chance to register views for the roster
// and its groups, before we start populating.
if (_.isUndefined(converse.roster)) {
converse.initRoster();
} else {
// Give event handlers a chance to register views for the
// roster and its groups, before we start populating.
converse.emit('rosterReadyAfterReconnection');
}
converse.chatboxes.onConnected();
converse.populateRoster();
converse.xmppstatus.sendPresence();
......
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