From a5e186b9786c387c999ecc70251ba01059add194 Mon Sep 17 00:00:00 2001 From: Germain Date: Thu, 31 Aug 2023 21:21:32 +0100 Subject: [PATCH] Move notifications bell back in labs --- src/components/views/rooms/RoomHeader.tsx | 22 +++++++++++++--------- src/i18n/strings/en_EN.json | 3 ++- src/settings/Settings.tsx | 8 ++++++++ 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/src/components/views/rooms/RoomHeader.tsx b/src/components/views/rooms/RoomHeader.tsx index 05e649bddb..21f6e4e939 100644 --- a/src/components/views/rooms/RoomHeader.tsx +++ b/src/components/views/rooms/RoomHeader.tsx @@ -106,6 +106,8 @@ export default function RoomHeader({ room }: { room: Room }): JSX.Element { }, [room, directRoomsList]); const e2eStatus = useEncryptionStatus(client, room); + const notificationsEnabled = useFeatureEnabled("feature_notifications"); + return ( - { - showOrHidePanel(RightPanelPhases.NotificationPanel); - }} - title={_t("Notifications")} - > - - + {notificationsEnabled && ( + { + showOrHidePanel(RightPanelPhases.NotificationPanel); + }} + title={_t("Notifications")} + > + + + )} {!isDirectMessage && (