From 4f4498994c544fc895dd7d03300119f36abcb29c Mon Sep 17 00:00:00 2001 From: David Battersby Date: Fri, 6 Dec 2024 17:38:13 +0400 Subject: [PATCH] UX: fix channel name style for unread threads (#30152) Follow up to #30127. Normally when viewing a channel with tracked threads, we dismiss the blue dot next to the channel name even though the thread has not been read yet. This change applies the same criteria to determine if we should bold the channel name. --- .../javascripts/discourse/components/chat-channel-row.gjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjs index 857ee954b13..622bbe0c7f3 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjs @@ -142,7 +142,7 @@ export default class ChatChannelRow extends Component { get channelHasUnread() { return ( this.args.channel.tracking.unreadCount > 0 || - this.args.channel.unreadThreadsCount > 0 + this.args.channel.unreadThreadsCountSinceLastViewed > 0 ); }