Emit 'roster' event after updating contacts

This commit is contained in:
JC Brand 2016-08-31 09:59:54 +00:00
parent 3c9b5bd7a0
commit 66c7c41888

View File

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