Skip to content

Commit 81a1dde

Browse files
refactor: use highlightUnread
1 parent 4e7cb4c commit 81a1dde

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apps/meteor/client/sidebar/RoomList/SideBarItemTemplateWithData.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,10 @@ function SideBarItemTemplateWithData({
9393
const href = roomCoordinator.getRouteLink(room.t, room) || '';
9494
const title = roomCoordinator.getRoomName(room.t, room) || '';
9595

96-
const { lastMessage, hideUnreadStatus, unread = 0, alert, rid, t: type, cl } = room;
96+
const { lastMessage, unread = 0, alert, rid, t: type, cl } = room;
9797

98-
const { unreadCount, unreadTitle, showUnread } = useUnreadDisplay(room);
98+
const { unreadCount, unreadTitle, showUnread, highlightUnread: highlighted } = useUnreadDisplay(room);
9999

100-
const highlighted = Boolean(!hideUnreadStatus && (alert || unread));
101100
const icon = (
102101
// TODO: Remove icon='at'
103102
<Sidebar.Item.Icon highlighted={highlighted} icon='at'>

0 commit comments

Comments
 (0)