Fix unread count for group conversations you left

This commit is contained in:
Jamie Kyle 2023-12-13 09:10:36 -08:00 committed by GitHub
parent f8c4e392fe
commit e3efb48960
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,7 @@ export type ConversationPropsForUnreadStats = Readonly<
| 'muteExpiresAt' | 'muteExpiresAt'
| 'unreadCount' | 'unreadCount'
| 'unreadMentionsCount' | 'unreadMentionsCount'
| 'left'
> >
>; >;
@ -51,6 +52,9 @@ function canCountConversation(
if (!options.includeMuted && isConversationMuted(conversation)) { if (!options.includeMuted && isConversationMuted(conversation)) {
return false; return false;
} }
if (conversation.left) {
return false;
}
return true; return true;
} }