-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PDO protocol (peer data operation): Get more history sync + better message retry mechanism #919
Conversation
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:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and implemented
How to use sock.fetchMessageHistory |
This comment was marked as abuse.
This comment was marked as abuse.
get from the last conversation that you have.. after calling the fetchMessageHistory function, you will receive a message history notification, and here you can retrieve the last 50 messages from the chat.. const messageId = await sock.fetchMessageHistory(
50,
{
"remoteJid": "xxx@s.whatsapp.net",
"fromMe": false,
"id": "0054381C1C7B869DF00AF"
},
1700990261
) |
But sock.fetchMessageHistory is not a function in whiskeysockets/baileys@WhiskeySockets/Baileys#feature/pdo-sync it's not defined in sock. Do i need to define it? |
You can use |
Implemented and tested |
please provide some example , how to use ? |
Will add today, no need for implementations |
Does this will perform better than the current setup? Right now i only handle manual ack whenever a message is missing from node at an interval until the message is arrived. Sometimes it never arrive... |
* fix: profilePictureUrl (#901) * Update module to latest version (#926) * Update package.json Update the module to the latest * Add files via upload * Fix: Readme use upsert events (#908) * Fix: getUSyncDevices (#862) * Update messages-send.ts * Update messages-send.ts * Update messages-send.ts * Fix lint * Fix lint * fix(master): update linting workflow to node 20 (current LTS) --------- Co-authored-by: Akhlaqul Muhammad Fadwa <75623219+zennn08@users.noreply.github.com> Co-authored-by: Rizz2Dev <muhamad.rizki27483@smp.belajar.id> Co-authored-by: Oscar Guindzberg <oscar.guindzberg@gmail.com> Co-authored-by: Bob <115008575+bobslavtriev@users.noreply.github.com>
Revert "Update module to latest version (#926)"
054cdb5
to
eeb95c9
Compare
… it is resolved immediately
…O request ID with it
No description provided.