Commit c621732f authored by JC Brand's avatar JC Brand

Bugfix. Get JID from presence

parent 03d7f07a
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment