whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

Contact details are incorrect

Open rudraasakariya opened this issue 2 years ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the bug

When using the getContacts() and getContactByID(), the details received after the promise is returned incorrect such as a contact that is already saved is shown as not saved

Example: Saved Number = +91 1234567890 isMyContact property of both methods will return "FALSE"are

Expected behavior

As a user I expected it to show that the contact is saved but it shows that it isn't saved

Steps to Reproduce the Bug or Issue

let c = await client.getContactById("[email protected]"); console.log(c);

Relevant Code

No response

Browser Type

Google Chrome

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

Windows 11 Node - 16.14.2

Additional context

No response

rudraasakariya avatar Aug 18 '22 17:08 rudraasakariya

Got the same issue here.

arbisyarifudin avatar Aug 22 '22 12:08 arbisyarifudin

Got the same issue here, plus it's returning that a number has whatsapp even if it doesn't.

Dragonflip avatar Aug 30 '22 21:08 Dragonflip

Will investigate, thanks for reporting

purpshell avatar Jan 06 '23 17:01 purpshell

same here

danielR2001 avatar Feb 09 '23 09:02 danielR2001

Fixed after #2385

alechkos avatar Dec 04 '23 21:12 alechkos