diff --git a/.changeset/fix-muted-room-unread-indicator.md b/.changeset/fix-muted-room-unread-indicator.md new file mode 100644 index 000000000..757b6da4a --- /dev/null +++ b/.changeset/fix-muted-room-unread-indicator.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +Hide unread dot/highlight for rooms with notification mode set to Mute. diff --git a/src/app/features/room-nav/RoomNavItem.tsx b/src/app/features/room-nav/RoomNavItem.tsx index 30d93d436..f9d279062 100644 --- a/src/app/features/room-nav/RoomNavItem.tsx +++ b/src/app/features/room-nav/RoomNavItem.tsx @@ -343,6 +343,9 @@ export function RoomNavItem({ }; const optionsVisible = hover || !!menuAnchor; + const isMutedRoom = notificationMode === RoomNotificationMode.Mute; + const shouldShowUnreadIndicator = !isMutedRoom && (!!unread || hasRoomUnread); + let unreadCount = 0; if (unread) { unreadCount = unread.highlight > 0 ? unread.highlight : unread.total; @@ -368,7 +371,7 @@ export function RoomNavItem({ )} - {!optionsVisible && (unread || hasRoomUnread) && ( + {!optionsVisible && shouldShowUnreadIndicator && ( 0}