Skip to content

[🐛] Bug Report Title - Read receipts is off by 1, counts user that sent message as having viewed #3009

@minh-trinh-ef

Description

@minh-trinh-ef

Issue

Describe your issue here
It seems like this fix #2609 is causing the read receipts count in the message footer to be off by 1. When a new message is sent, the read count is automatically incremented by 1 and the read receipt reflects this, even though the message has not been read by any other channel user besides the user that sent the message.

Steps to reproduce

Steps to reproduce the behavior:

  1. Enter channel
  2. Send message
  3. See readby is 1
  4. See read receipt count is 1
  5. Verify that for each user in channel, their last read timestamp is less than the time the message was created (besides the user that wrote the message)

Expected behavior

Read receipt should reflect accurate count of who read the message

Project Related Information

Customization

Click To Expand

# N/A

Offline support

  • I have enabled offline support.
  • The feature I'm having does not occur when offline support is disabled. (stripe out if not applicable)

Environment

Click To Expand

package.json:

# N/A

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • [ x] iOS
    • [ x] Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • stream-chat-react-native version you're using that has this issue:
    • 5.35.0+ (Any version after 5.34)
  • Device/Emulator info:
    • [ x] I am using a physical device
    • OS version: Android 15, iOS 18
    • Device/Emulator: iPhone 14 Pro, Google Pixel 6

Additional context

Screenshots

Click To Expand


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions