pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
14.62k stars 3.48k forks source link

Contact details are incorrect #1661

Closed rudraasakariya closed 7 months ago

rudraasakariya commented 1 year ago

Is there an existing issue for this?

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("1234567890@c.us"); 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

arbisyarifudin commented 1 year ago

Got the same issue here.

Dragonflip commented 1 year ago

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

PurpShell commented 1 year ago

Will investigate, thanks for reporting

danielR2001 commented 1 year ago

same here

alechkos commented 7 months ago

Fixed after #2385