Skip to content

Commit

Permalink
fix: Can't remove channel's password to join (#31507)
Browse files Browse the repository at this point in the history
Co-authored-by: Douglas Fabris <27704687+dougfabris@users.noreply.github.com>
  • Loading branch information
Spiral-Memory and dougfabris authored Jan 22, 2024
1 parent 4ff8bb9 commit 8aa1ac2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/forty-dragons-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Fixed an issue not allowing users to remove the password to join the room on room edit
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const EditRoomInfo = ({ room, onClickClose, onClickBack }: EditRoomInfoProps) =>
await saveAction({
rid: room._id,
...data,
...(data.joinCode && { joinCode: joinCodeRequired ? data.joinCode : '' }),
...((data.joinCode || 'joinCodeRequired' in data) && { joinCode: joinCodeRequired ? data.joinCode : '' }),
...((data.systemMessages || !hideSysMes) && {
systemMessages: hideSysMes && data.systemMessages,
}),
Expand Down

0 comments on commit 8aa1ac2

Please sign in to comment.