Skip to content

markread command does not sync unread message alerts to WhatsApp Web #229

@flaviortlopes

Description

@flaviortlopes

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 markread command is executed
  • WhatsApp Web: unread message alerts persist and are NOT cleared

Steps to Reproduce

  1. Receive messages in a WhatsApp group (or any chat)
  2. Send API request using /chat/markread endpoint
  3. Also tried: /chat/presence followed by /user/presence to force synchronization
  4. Observe the behavior on both mobile app and WhatsApp Web

Attempts Made

Tried the following approaches without success:

  1. Using only /chat/markread
  2. Chaining requests: /chat/markread followed by /chat/presence
  3. Chaining requests: /chat/markread followed by /chat/presence followed 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions