Explorar o código

Don't call updateVCard if use_vcards is false.

JC Brand %!s(int64=10) %!d(string=hai) anos
pai
achega
1b6e67ae73
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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'))) {