Skip to content

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

@Rajat6697

Description

@Rajat6697

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions