matrix-org / matrix-org/matrix-spec

Ability to mark messages as unread

Open
#612 5 comments 20 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-Client-Server feature
Dominant language
HTML
Stars
330
Forks
150
Avg merge
2h 21m
Merged PRs (30d)
3

Description

In a similar vein to email, it would be good to mark a message you plan to go back to as unread so you can focus on other things. Currently the way people work around this is read messages from their notifications and avoid clicking on the room to clear the unread marker. Obviously, this means the user cannot interact with the room in any way in the meantime, aside from it being intuitive.

The simple solution I would propose is a room-account-data item, which simply lists event_ids in an array. When marking a message as read, the eventID is entered into the array. Clients should take this into account and increase the rooms unread counter by this number, as well as highlighting the message in some way.

The eventID should be removed from the array once the user has indicated that the message has been read.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the proposed room-account-data item and how Matrix currently represents read messages and unread counters. Define the protocol and client behavior for adding and removing event IDs, including how clients highlight messages and update room counts; done means the behavior is specified consistently for all clients.

Written by the indexing model from the issue text.

Assessment

Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.