RocketChat / RocketChat/Rocket.Chat
im.counter does not give unread messages to other users
Open
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:
- Set the administrator the right View Room Administration
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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