Move notifications bell back in labs

This commit is contained in:
Germain 2023-08-31 21:21:32 +01:00
parent 45094bda7c
commit a5e186b978
3 changed files with 23 additions and 10 deletions

View file

@ -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 (
<Flex
as="header"
@ -187,15 +189,17 @@ export default function RoomHeader({ room }: { room: Room }): JSX.Element {
>
<ThreadsIcon />
</IconButton>
<IconButton
indicator={notificationColorToIndicator(globalNotificationState.color)}
onClick={() => {
showOrHidePanel(RightPanelPhases.NotificationPanel);
}}
title={_t("Notifications")}
>
<NotificationsIcon />
</IconButton>
{notificationsEnabled && (
<IconButton
indicator={notificationColorToIndicator(globalNotificationState.color)}
onClick={() => {
showOrHidePanel(RightPanelPhases.NotificationPanel);
}}
title={_t("Notifications")}
>
<NotificationsIcon />
</IconButton>
)}
</Flex>
{!isDirectMessage && (
<BodyText