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); }