Skip to content

Commit

Permalink
Fix unread count for group conversations you left
Browse files Browse the repository at this point in the history
Co-authored-by: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and jamiebuilds-signal committed Dec 13, 2023
1 parent 545e912 commit 67958cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ts/util/countUnreadStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export type ConversationPropsForUnreadStats = Readonly<
| 'muteExpiresAt'
| 'unreadCount'
| 'unreadMentionsCount'
| 'left'
>
>;

Expand All @@ -51,6 +52,9 @@ function canCountConversation(
if (!options.includeMuted && isConversationMuted(conversation)) {
return false;
}
if (conversation.left) {
return false;
}
return true;
}

Expand Down

0 comments on commit 67958cd

Please sign in to comment.