Skip to content

Commit

Permalink
fix!: hide archived rooms in room.autocomplete endpoint (#31383)
Browse files Browse the repository at this point in the history
  • Loading branch information
heitortanoue authored and ggazzo committed Oct 17, 2024
1 parent 5e3433c commit 2f2d53a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/three-avocados-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": major
---

No longer shows archived rooms in `rooms.autocomplete.channelAndPrivate` endpoint
2 changes: 1 addition & 1 deletion apps/meteor/server/models/raw/Rooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ export class RoomsRaw extends BaseRaw<IRoom> implements IRoomsModel {
},
],
prid: { $exists: false },
$and: [{ $or: [{ federated: { $exists: false } }, { federated: false }] }],
$and: [{ federated: { $ne: true } }, { archived: { $ne: true } }],
};

return this.find(query, options);
Expand Down

0 comments on commit 2f2d53a

Please sign in to comment.