From 123590794544fba7dbc6a485c6a6090b12cf3f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Wed, 22 Mar 2023 21:02:27 +0100 Subject: [PATCH] Consider unread when mentions are present regardless of muted state (#7224) --- app/utils/categories.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/categories.ts b/app/utils/categories.ts index ab569b9f2..569045985 100644 --- a/app/utils/categories.ts +++ b/app/utils/categories.ts @@ -24,7 +24,7 @@ export function makeCategoryChannelId(teamId: string, channelId: string) { export const isUnreadChannel = (myChannel: MyChannelModel, notifyProps?: Partial, lastUnreadChannelId?: string) => { const isMuted = notifyProps?.mark_unread === General.MENTION; - return (isMuted && myChannel.mentionsCount) || (!isMuted && myChannel.isUnread) || (myChannel.id === lastUnreadChannelId); + return myChannel.mentionsCount || (!isMuted && myChannel.isUnread) || (myChannel.id === lastUnreadChannelId); }; export const filterArchivedChannels = (channelsWithMyChannel: ChannelWithMyChannel[], currentChannelId: string) => {