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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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

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