From 8ea4ddf5f5bb4396bbecd9830cf4c47cc9513c16 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Fri, 9 Feb 2024 19:18:29 -0300 Subject: [PATCH] the notification icon in the room header will appear if notifications are disabled or highlight troubleshoot is true --- app/views/RoomView/RightButtons.tsx | 22 ++++++++++++++-------- app/views/RoomView/index.tsx | 3 +++ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/app/views/RoomView/RightButtons.tsx b/app/views/RoomView/RightButtons.tsx index 9c357985b..0552c2bc8 100644 --- a/app/views/RoomView/RightButtons.tsx +++ b/app/views/RoomView/RightButtons.tsx @@ -47,6 +47,7 @@ interface IRightButtonsProps extends Pick { theme?: TSupportedThemes; colors?: TColors; highlightTroubleshooting: boolean; + disableNotifications?: boolean; } interface IRigthButtonsState { @@ -95,7 +96,7 @@ class RightButtonsContainer extends Component - + {highlightTroubleshooting || disableNotifications ? ( + + ) : null} {rid ? : null} {threadsEnabled ? ( { toggleFollowThread={this.toggleFollowThread} showActionSheet={this.showActionSheet} departmentId={departmentId} + // The properties of notification are saved on the object of room too + // @ts-ignore + disableNotifications={room.disableNotifications} /> ) });