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

Missing add message events for initially synced messages #3219

Open
1 task done
gucki opened this issue Jul 22, 2024 · 0 comments
Open
1 task done

Missing add message events for initially synced messages #3219

gucki opened this issue Jul 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gucki
Copy link

gucki commented Jul 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When opening whatsapp web the client seems to do a bulk sync of messages since the last active session. During this sync the ui isn't showing the chats but some loading indicator with some text like "Please wait while your messages are being synced...". It seems that whatsapp-web.js is "missing" all these synced messages because no "add" event on the "Store" is fired for each message. Is this a known issue? How to work around it? I need to process all messages (even the whatsapp-web.js client was down for a few hours) and must not miss any.

Expected behavior

An add event is emitted for all new messages, including those retrieved during a "bulk" sync (the sync which occurs after the web client wasn't online for some time and many messages arrived meanwhile).

Steps to Reproduce the Bug or Issue

Close the whatsapp-web.js client. Wait some time (a few hours?) meanwhile many messages are received by the device (without having a whatsapp web session open). Start the whatsapp-web.js client and see how whatsapp is performing a "bulk" sync. No add event is emitted for many (all?) bulk synced messages.

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

latest versions

Additional context

No response

@gucki gucki added the bug Something isn't working label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant