(cherry picked from commit ba523fab15)
Co-authored-by: Daniel Espino García <larkox@gmail.com>
This commit is contained in:
parent
8cbee57e3e
commit
86e2d4aacd
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue