RocketChat / RocketChat/Rocket.Chat

Deleting Messages deletes max 2000 messages

Open
#21,305 5 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:

Deleting Messages deletes max 2000 messages

Steps to reproduce:
  1. click on the channel in question
  2. click on the triple dot in the upper right corner
  3. click delete messages
  4. select older-than
  5. choose 2021-01-01
  6. click the big fat red DELETE button
Expected behavior:

Messages before 2021-01-01 are deleted

Actual behavior:

2000 Messages are deleted.

Server Setup Information:
  • Version of Rocket.Chat Server: 3.12.1
  • Operating System: Linux
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: I dont know what this is
  • NodeJS Version: 12.18.4
  • MongoDB Version: 3.6.14
Client Setup Information
  • Desktop App or Browser Version: desktop 3.0.3
  • Operating System: MacOS
Additional context

none that I am aware of.

Relevant logs:

no relevant logs found.

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 reproducing the deletion through the channel menu with more than 2,000 messages matching the selected date, then trace that action from the UI into the server-side deletion handling. Look for the batch limit and verify that all messages before 2021-01-01 are deleted rather than only the first 2,000.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.