Bugfix. Get JID from presence
This commit is contained in:
parent
03d7f07a4c
commit
c621732f2f
@ -129,7 +129,7 @@
|
||||
_converse.api.settings.update({'use_vcards': true});
|
||||
|
||||
_converse.createRequestingContactFromVCard = function (presence, vcard) {
|
||||
const bare_jid = Strophe.getBareJidFromJid(vcard.jid);
|
||||
const bare_jid = Strophe.getBareJidFromJid(presence.getAttribute('from'));
|
||||
let fullname = vcard.fullname;
|
||||
if (!fullname) {
|
||||
const nick_el = sizzle(`nick[xmlns="${Strophe.NS.NICK}"]`, presence);
|
||||
|
Loading…
Reference in New Issue
Block a user