From 4e8a1487ca917efda8d88741a640398bf6e6c775 Mon Sep 17 00:00:00 2001 From: David Battersby Date: Thu, 5 Dec 2024 14:17:31 +0400 Subject: [PATCH] UX: make channel name bold for unread threads (#30127) Channels with unread threads should have a font weight of bold to match unread channels. --- .../javascripts/discourse/components/chat-channel-row.gjs | 5 ++++- 1 file changed, 4 insertions(+), 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 b57deb3e429..857ee954b13 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-channel-row.gjs @@ -140,7 +140,10 @@ export default class ChatChannelRow extends Component { } get channelHasUnread() { - return this.args.channel.tracking.unreadCount > 0; + return ( + this.args.channel.tracking.unreadCount > 0 || + this.args.channel.unreadThreadsCount > 0 + ); } get shouldRenderLastMessage() {