Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some messages are not getting returned when calling WPP.chat.getMessages #2552

Open
Rajat6697 opened this issue Nov 28, 2024 · 6 comments
Open

Comments

@Rajat6697
Copy link

Rajat6697 commented Nov 28, 2024

WA-JS Version

3.15.1

WhatsApp Version

2.3000.1018520455

Browser Version

Chrome Version 131.0.6778.86 (Official Build) (64-bit)

Operation System

Windows 11

Steps to reproduce

  1. Open a contact

  2. Send a message and also receive a message from that contact at the same time.
    image

  3. Call WPP.chat.getMessages('918285501***@c.us', {
    count: 50,
    }) function and you will notice one of the last two messages is not coming.

What is expected?

All the messages along with last two messages which are being sent or received should be there.

What is actually happening?

One of the last two messages is not coming when calling the WPP.chat.getMessages('918285501***@c.us', {
count: 50,
}); function.

Any additional comments?

Video : https://youtu.be/2yw0GBOCd4o
No response

@DXPRO
Copy link
Contributor

DXPRO commented Nov 28, 2024

I don't know how exactly you are using this function, but it is working very well here for me:

Screenshot_6

@Rajat6697
Copy link
Author

I don't know how exactly you are using this function, but it is working very well here for me:

Screenshot_6

https://youtu.be/2yw0GBOCd4o
You can check the issue here

@erSurajMahajan
Copy link

try it with await, its working fine

await WPP.chat.getMessages('918285501***@c.us', {
count: 50,
}) 

@Rajat6697
Copy link
Author

Rajat6697 commented Nov 28, 2024

try it with await, its working fine

await WPP.chat.getMessages('918285501***@c.us', {
count: 50,
}) 

Doesn't work every time, with or without await.

@sagardewan
Copy link

Hi @icleitoncosta did you get time to see this?

@icleitoncosta
Copy link
Contributor

I tried reproducing this error on WhatsApp version 2.3000.1019030618, but the issue did not occur. Could you update the whatsapp version and test it, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants