Răsfoiți Sursa

Emit 'roster' event after updating contacts

JC Brand 9 ani în urmă
părinte
comite
66c7c41888
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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
                 /* 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) {