Skip to content

Commit

Permalink
fix: DM room stay "read only" after the deactivate and reactivate use…
Browse files Browse the repository at this point in the history
…r with "guest" role (#30459)

Co-authored-by: Matheus Barbosa Silva <[email protected]>
  • Loading branch information
heitortanoue and matheusbsilva137 authored Oct 10, 2023
1 parent 0586501 commit f5c0d6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gentle-radios-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Fixed DM room with "guest" user kept as "read only" after reactivating user
1 change: 0 additions & 1 deletion apps/meteor/server/models/raw/Users.js
Original file line number Diff line number Diff line change
Expand Up @@ -2187,7 +2187,6 @@ export class UsersRaw extends BaseRaw {
{
active: true,
type: { $nin: ['app'] },
roles: { $ne: ['guest'] },
_id: { $in: ids },
},
options,
Expand Down

0 comments on commit f5c0d6b

Please sign in to comment.