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

fix: messaging-history.set event not emitting syncType and progress / add PDO request id #1042

Merged
merged 2 commits into from
Sep 22, 2024

Conversation

vinikjkkj
Copy link
Contributor

The common messaging-history.set event when you have buffered events in progress is:

{
        chats: []
        contacts: []
        messages: []
        isLatest?: boolean
}

This event is missing syncType and progress, and the PDO request id if you requested history.
The new event will be:

{
        chats: []
        contacts: []
        messages: []
        isLatest?: boolean
        progress?: number
        syncType?: HistorySyncType
        peerDataRequestSessionId?: string | null
}

@whiskeysockets-bot
Copy link
Contributor

Thanks for your contribution.

The next step is to wait for review and approval to merge it to main repository

The community can help reacting with a thumb up (:thumbsup:) for approval and rocket (:rocket:) for who has tested it.

To test this PR you can run the following command below:

# NPM
npm install @whiskeysockets/baileys@vinikjkkj/Baileys-Public#historyset-fix
# YARN v2
yarn add @whiskeysockets/baileys@vinikjkkj/Baileys-Public#historyset-fix

@PurpShell PurpShell merged commit fda2689 into WhiskeySockets:master Sep 22, 2024
2 checks passed
jlucaso1 pushed a commit to jlucaso1/Baileys that referenced this pull request Sep 27, 2024
… add PDO request id (WhiskeySockets#1042)

* initial commit

* add PDO request id
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

Successfully merging this pull request may close these issues.

3 participants