Bugfix. Avoid passing IQ to sendPresence.

This commit is contained in:
JC Brand 2016-01-15 09:02:48 +00:00
parent f779b9a3c0
commit 1884621f3f

View File

@ -4956,9 +4956,9 @@
* fetching the roster we are ready to receive presence * fetching the roster we are ready to receive presence
* updates from our contacts. * updates from our contacts.
*/ */
converse.roster.fetchFromServer( converse.roster.fetchFromServer(function () {
converse.xmppstatus.sendPresence.bind(converse.xmppstatus) converse.xmppstatus.sendPresence();
); });
} else if (converse.send_initial_presence) { } else if (converse.send_initial_presence) {
/* We're not going to fetch the roster again because we have /* We're not going to fetch the roster again because we have
* it already cached in sessionStorage, but we still need to * it already cached in sessionStorage, but we still need to