Selaa lähdekoodia

Don't call updateVCard if use_vcards is false.

JC Brand 10 vuotta sitten
vanhempi
commit
1b6e67ae73
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      converse.js

+ 1 - 0
converse.js

@@ -1507,6 +1507,7 @@
             },
 
             updateVCard: function () {
+                if (!this.use_vcards) { return; }
                 var jid = this.model.get('jid'),
                     contact = converse.roster.get(jid);
                 if ((contact) && (!contact.get('vcard_updated'))) {