Commit e90632d6 authored by JC Brand's avatar JC Brand

Bugfix. No roster when reconnecting.

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