Browse Source

Don't call updateVCard if use_vcards is false.

JC Brand 10 năm trước cách đây
mục cha
commit
1b6e67ae73
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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'))) {