From 86e2d4aacd7fd39eb8a04a4cb4d1fdd7762c0a26 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Fri, 17 Mar 2023 05:12:27 -0400 Subject: [PATCH] Fix muted channels not being filtered out on the categories list (#7210) (#7212) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit ba523fab158d041b3fa00e75838a25c0e4759648) Co-authored-by: Daniel Espino GarcĂ­a --- 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 c871da9a7..ab569b9f2 100644 --- a/app/utils/categories.ts +++ b/app/utils/categories.ts @@ -191,7 +191,7 @@ export const sortChannels = (sorting: CategorySorting, channelsWithMyChannel: Ch export const getUnreadIds = (cwms: ChannelWithMyChannel[], notifyPropsPerChannel: Record>, lastUnreadId?: string) => { return cwms.reduce>((result, cwm) => { - if (isUnreadChannel(cwm.myChannel, notifyPropsPerChannel, lastUnreadId)) { + if (isUnreadChannel(cwm.myChannel, notifyPropsPerChannel[cwm.channel.id], lastUnreadId)) { result.add(cwm.channel.id); }