RocketChat / RocketChat/Rocket.Chat

REST API: unread counter and adding member to the group

Open
#21,667 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

New group (without messages) has not empty unread counter after creation via REST API. It seems the reason is that adding new member to the group creates new message in the chat (http://joxi.ru/n2YJRjWHeEdY3A).

That's what I would like:

No affects on unread counter after a member have been added or joined to the group chat.

What I do:
  1. I create a group via REST API.
  2. I get the group counters via REST API.
  3. There is no member's messages yet but unread counter is not 0.

Is it configurable (I can not find any settings)?

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

Reproduce the issue by creating an empty group through the REST API, adding or joining a member, and then fetching the group counters. Trace how member-added system messages affect the unread counter. Done means a newly created group reports zero unread messages until an actual member message exists, with coverage for the described REST API flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.