Commit b4e4248f authored by JC Brand's avatar JC Brand

Fixes #1960

parent 9f7b6d6f
......@@ -115,13 +115,13 @@ converse.plugins.add('converse-vcard', {
if (vcard !== null) {
result = {
'stanza': iq,
'fullname': vcard.querySelector('FN')?.textConte?.t,
'nickname': vcard.querySelector('NICKNAME')?.textConte?.t,
'image': vcard.querySelector('PHOTO BINVAL')?.textConte?.t,
'image_type': vcard.querySelector('PHOTO TYPE')?.textConte?.t,
'url': vcard.querySelector('URL')?.textConte?.t,
'role': vcard.querySelector('ROLE')?.textConte?.t,
'email': vcard.querySelector('EMAIL USERID')?.textConte?.t,
'fullname': vcard.querySelector('FN')?.textContent,
'nickname': vcard.querySelector('NICKNAME')?.textContent,
'image': vcard.querySelector('PHOTO BINVAL')?.textContent,
'image_type': vcard.querySelector('PHOTO TYPE')?.textContent,
'url': vcard.querySelector('URL')?.textContent,
'role': vcard.querySelector('ROLE')?.textContent,
'email': vcard.querySelector('EMAIL USERID')?.textContent,
'vcard_updated': (new Date()).toISOString(),
'vcard_error': undefined
};
......
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