Skip to content

bug: Messages not marked as read when new message arrives in active room #7087

@divyanshu-patil

Description

@divyanshu-patil

Describe the Bug

When a new message arrived in a room the user was actively viewing, the unread count and read status were not being updated. The user had to leave and re-enter the room to trigger the read receipt.

Steps to Reproduce

  1. Open a room with another user/device
  2. Have the other user send a message while you are actively viewing the room
  3. Before: unread badge/count does not clear; read receipt not sent until you navigate away and back
  4. After: message is marked as read immediately upon arrival

Expected Behavior

message read status should be updated if user is in subscribed room

Actual Behavior

message read status not updating if user is in same room, he has to go back and enter again to update read status

Screenshots

read.fix.before.mp4

Rocket.Chat Server Version

8.13-develop

Rocket.Chat App Version

4.72.0

Device Name

iPhone 17 pro simulator

OS Version

iOS 26

Additional Context

this is happening because of missing resolve() block in updateMessage() in RoomSubscription which is making it to hung forever

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