forked from Ivasoft/mattermost-mobile
Fix muted channels not being filtered out on the categories list (#7210)
This commit is contained in:
committed by
GitHub
parent
8ff732a9d6
commit
ba523fab15
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user