Commit 66c7c418 authored by JC Brand's avatar JC Brand

Emit 'roster' event after updating contacts

parent 3c9b5bd7
...@@ -1041,10 +1041,10 @@ ...@@ -1041,10 +1041,10 @@
/* An IQ stanza containing the roster has been received from /* An IQ stanza containing the roster has been received from
* the XMPP server. * the XMPP server.
*/ */
converse.emit('roster', iq);
$(iq).children('query').find('item').each(function (idx, item) { $(iq).children('query').find('item').each(function (idx, item) {
this.updateContact(item); this.updateContact(item);
}.bind(this)); }.bind(this));
converse.emit('roster', iq);
}, },
updateContact: function (item) { updateContact: function (item) {
......
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