Fix muted channels not being filtered out on the categories list (#7210)

This commit is contained in:
Daniel Espino García
2023-03-16 11:06:53 +01:00
committed by GitHub
parent 8ff732a9d6
commit ba523fab15

View File

@@ -191,7 +191,7 @@ export const sortChannels = (sorting: CategorySorting, channelsWithMyChannel: Ch
export const getUnreadIds = (cwms: ChannelWithMyChannel[], notifyPropsPerChannel: Record<string, Partial<ChannelNotifyProps>>, lastUnreadId?: string) => {
return cwms.reduce<Set<string>>((result, cwm) => {
if (isUnreadChannel(cwm.myChannel, notifyPropsPerChannel, lastUnreadId)) {
if (isUnreadChannel(cwm.myChannel, notifyPropsPerChannel[cwm.channel.id], lastUnreadId)) {
result.add(cwm.channel.id);
}