Move VCard stuff from converse-rosterview to converse-vcard
This commit is contained in:
parent
6506d4745a
commit
302c8d42d8
@ -286,11 +286,6 @@
|
||||
|
||||
onContactAdd: function (contact) {
|
||||
this.addRosterContact(contact).update();
|
||||
if (!contact.get('vcard_updated')) {
|
||||
// This will update the vcard, which triggers a change
|
||||
// request which will rerender the roster contact.
|
||||
converse.getVCard(contact.get('jid'));
|
||||
}
|
||||
},
|
||||
|
||||
onContactChange: function (contact) {
|
||||
|
@ -158,6 +158,18 @@
|
||||
};
|
||||
converse.on('chatBoxInitialized', updateVCardForChatBox);
|
||||
|
||||
|
||||
var onContactAdd = function (contact) {
|
||||
if (!contact.get('vcard_updated')) {
|
||||
// This will update the vcard, which triggers a change
|
||||
// request which will rerender the roster contact.
|
||||
converse.getVCard(contact.get('jid'));
|
||||
}
|
||||
};
|
||||
converse.on('initialized', function () {
|
||||
converse.roster.on("add", onContactAdd);
|
||||
});
|
||||
|
||||
var fetchOwnVCard = function () {
|
||||
if (converse.xmppstatus.get('fullname') === undefined) {
|
||||
converse.getVCard(
|
||||
|
Loading…
Reference in New Issue
Block a user