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
* updates from our contacts.
*/
converse.roster.fetchFromServer(
converse.xmppstatus.sendPresence.bind(converse.xmppstatus)
);
converse.roster.fetchFromServer(function () {
converse.xmppstatus.sendPresence();
});
} else if (converse.send_initial_presence) {
/* We're not going to fetch the roster again because we have
* it already cached in sessionStorage, but we still need to