Move notifications bell back in labs
This commit is contained in:
parent
45094bda7c
commit
a5e186b978
3 changed files with 23 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue