Don't call updateVCard if use_vcards is false.

This commit is contained in:
JC Brand 2015-04-15 21:19:43 +02:00
parent 324e3fee2a
commit 1b6e67ae73

View File

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