converse.js icon indicating copy to clipboard operation
converse.js copied to clipboard

Error getting data from Vcard Contact

Open rgonzalez-in opened this issue 2 years ago • 2 comments

Describe the bug I am unable to obtain updated contact profile data.

To Reproduce Steps to reproduce the behavior:

  1. Click on 'picture profile contact'
  2. Click on 'update - refresh'
  3. See error: 3.1 TypeError: Cannot read properties of null (reading 'requestUpdate') 3.2 TypeError: Cannot read properties of undefined (reading 'querySelector')

Expected behavior Get updated vcard contact information: Nickname, Picture, Email, etc...

Screenshots image

image

Environment (please complete the following information):

  • XMPP Server = Ejabberd 23.10.0
  • Desktop or Mobile? = all
  • Browser = all
  • Converse.js version = 10.1.6

Additional context When the data (cookie - cache) is deleted from the browser, the new vcard data is updated.

rgonzalez-in avatar Feb 19 '24 16:02 rgonzalez-in

Confirming this behavior

I just reproduced the error. I can confirm that I have the same error. Environment (please complete the following information):

  • XMPP Server = Ejabberd 23.10.0
  • Desktop or Mobile? = all
  • Browser = all
  • Converse.js version = 10.1.6

Moreover I have one more error.

To Reproduce Steps to reproduce the behavior:

1- Click on 'picture profile contact' Here is the error when you click on "picture profile contact"

Screenshot from 2024-02-22 06-56-20

2- Click on 'update - refresh' Here is the error when you click on "Refresh"

Screenshot from 2024-02-22 06-57-08

Regards,

rheman avatar Feb 22 '24 11:02 rheman

Hello: I also want to share this screenshot where you can observe this error:

image

Any ideas?

rgonzalez-in avatar Mar 02 '24 19:03 rgonzalez-in

I've removed the button to manually refresh a contact. See here: c6aae997a40ee54c99008a1ffc2fcea40bf02c04

Instead, when the modal is opened (for the first time), the VCard is automatically refreshed.

jcbrand avatar Feb 19 '25 07:02 jcbrand