Consider unread when mentions are present regardless of muted state (#7224)
This commit is contained in:
parent
db18151a67
commit
1235907945
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ export function makeCategoryChannelId(teamId: string, channelId: string) {
|
|||
|
||||
export const isUnreadChannel = (myChannel: MyChannelModel, notifyProps?: Partial<ChannelNotifyProps>, lastUnreadChannelId?: string) => {
|
||||
const isMuted = notifyProps?.mark_unread === General.MENTION;
|
||||
return (isMuted && myChannel.mentionsCount) || (!isMuted && myChannel.isUnread) || (myChannel.id === lastUnreadChannelId);
|
||||
return myChannel.mentionsCount || (!isMuted && myChannel.isUnread) || (myChannel.id === lastUnreadChannelId);
|
||||
};
|
||||
|
||||
export const filterArchivedChannels = (channelsWithMyChannel: ChannelWithMyChannel[], currentChannelId: string) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue