Fix unread count for group conversations you left
This commit is contained in:
parent
f8c4e392fe
commit
e3efb48960
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,7 @@ export type ConversationPropsForUnreadStats = Readonly<
|
|||
| 'muteExpiresAt'
|
||||
| 'unreadCount'
|
||||
| 'unreadMentionsCount'
|
||||
| 'left'
|
||||
>
|
||||
>;
|
||||
|
||||
|
@ -51,6 +52,9 @@ function canCountConversation(
|
|||
if (!options.includeMuted && isConversationMuted(conversation)) {
|
||||
return false;
|
||||
}
|
||||
if (conversation.left) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue