RocketChat / RocketChat/Rocket.Chat

im.counter does not give unread messages to other users

Open
#23,765 0 comments 1 reaction 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:

im.counter does not give unread messages to other users

Steps to reproduce:
  1. Set the administrator the right View Room Administration
  2. Make a request to im.counter indicating the roomId and userId in which the admin is not himself
Expected behavior:

Gets counters of direct messages.

Actual behavior:

{"success":false,"error":"The required "roomId" or "username" param provided does not match any direct message [error-room-not-found]","errorType":"error-room-not-found"}

Server Setup Information:
  • Version of Rocket.Chat Server: 4.1.2
  • Operating System: Debian
  • Deployment Method: Docker

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 locating the im.counter endpoint and its permission checks for requests using another user's userId and roomId. Reproduce the request with View Room Administration enabled, then verify that direct-message unread counters are returned instead of error-room-not-found.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.