RocketChat / RocketChat/Rocket.Chat
Pruning and sorting by Activity
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
We are pruning the messages older than 30 days.
But if the client sorts the discussions by activity, every time a old messages is deleted, rocket chat detect that action as a new activity and the discussion goes to the top of the list.
Steps to reproduce:

Expected behavior:
Keeping the old discussions lower in the list
Actual behavior:
OLD discussions go to the top of the list even if they are old.
Server Setup Information:
- Version of Rocket.Chat Server: 4.19.76-linuxkit
- Operating System: Linux
- Deployment Method:
- Number of Running Instances: all the time
- DB Replicaset Oplog: ?
- NodeJS Version: ?
- MongoDB Version: ?
Client Setup Information
- Desktop App or Browser Version: Desktop App
- Operating System: Windows 10
Additional context
NONE
Relevant logs:
NONE
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
No files, tests, or entry points are named. Reproduce the issue with messages older than 30 days being pruned while discussions are sorted by activity, then trace the deletion and sorting behavior; done means old discussions remain lower in the list after pruning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- full-stack
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100
