From a21ae019185ef9749e93e6af19abc9dde8a74617 Mon Sep 17 00:00:00 2001 From: Douglas Fabris Date: Mon, 5 Feb 2024 18:23:10 -0300 Subject: [PATCH] fix: Messages not updating properly after pruning the room (#31658) --- .changeset/twenty-yaks-grab.md | 5 +++++ apps/meteor/app/lib/server/functions/cleanRoomHistory.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/twenty-yaks-grab.md diff --git a/.changeset/twenty-yaks-grab.md b/.changeset/twenty-yaks-grab.md new file mode 100644 index 000000000000..38cf79704956 --- /dev/null +++ b/.changeset/twenty-yaks-grab.md @@ -0,0 +1,5 @@ +--- +'@rocket.chat/meteor': patch +--- + +Fixes an issue where messages are not updating properly after pruning the room diff --git a/apps/meteor/app/lib/server/functions/cleanRoomHistory.ts b/apps/meteor/app/lib/server/functions/cleanRoomHistory.ts index 2b495ec4b0d0..133eba555a69 100644 --- a/apps/meteor/app/lib/server/functions/cleanRoomHistory.ts +++ b/apps/meteor/app/lib/server/functions/cleanRoomHistory.ts @@ -120,6 +120,7 @@ export async function cleanRoomHistory({ ignoreDiscussion, ts, users: fromUsers, + ids: selectedMessageIds, }); } return count;