-
-
Notifications
You must be signed in to change notification settings - Fork 380
Description
Issue Description
When using the /chat/markread API endpoint to mark messages as read, the unread message alert is correctly cleared from the WhatsApp mobile application. However, the same alert remains on WhatsApp Web, indicating that the synchronization of read status between the mobile app and Web is not working properly.
Current Behavior
- Mobile app: unread message alerts are cleared when
markreadcommand is executed - WhatsApp Web: unread message alerts persist and are NOT cleared
Steps to Reproduce
- Receive messages in a WhatsApp group (or any chat)
- Send API request using
/chat/markreadendpoint - Also tried:
/chat/presencefollowed by/user/presenceto force synchronization - Observe the behavior on both mobile app and WhatsApp Web
Attempts Made
Tried the following approaches without success:
- Using only
/chat/markread - Chaining requests:
/chat/markreadfollowed by/chat/presence - Chaining requests:
/chat/markreadfollowed by/chat/presencefollowed by/user/presence
All attempts successfully cleared the mobile app alerts, but Web remained unaffected.
Expected Behavior
Both WhatsApp mobile app and WhatsApp Web should display consistent unread message status after calling the markread API endpoint.
Possible Root Cause
The synchronization issue may be related to:
- Incomplete implementation of read receipts synchronization in the whatsmeow library
- Missing specific protocol events that WhatsApp Web requires to update read status
- Lack of explicit read receipt propagation to Web client devices
Question
Is there a specific API endpoint or parameter combination that can force proper synchronization of read status between mobile app and Web? Or is this a known limitation of the current implementation?
Any guidance or alternative approaches would be appreciated.