Browse Source

Emit 'roster' event after updating contacts

JC Brand 9 years ago
parent
commit
66c7c41888
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/converse-core.js

+ 1 - 1
src/converse-core.js

@@ -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) {