fix: remove hide option on omnichannel conversations (#32691)

Co-authored-by: Yash Rajpal <58601732+yash-rajpal@users.noreply.github.com>
pull/32445/head
csuadev 1 year ago committed by GitHub
parent 7b9b950c67
commit e9fae8e4db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      .changeset/popular-trees-lay.md
  2. 12
      apps/meteor/client/sidebar/RoomMenu.tsx

@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---
Removed 'Hide' option in the room menu for Omnichannel conversations.

@ -200,10 +200,14 @@ const RoomMenu = ({
const menuOptions = useMemo(
() => ({
...(!hideDefaultOptions && {
hideRoom: {
label: { label: t('Hide'), icon: 'eye-off' },
action: handleHide,
},
...(isOmnichannelRoom
? {}
: {
hideRoom: {
label: { label: t('Hide'), icon: 'eye-off' },
action: handleHide,
},
}),
toggleRead: {
label: { label: isUnread ? t('Mark_read') : t('Mark_unread'), icon: 'flag' },
action: handleToggleRead,

Loading…
Cancel
Save