From e3efb48960bec16c05956ed8ea6852e0f9fa9f39 Mon Sep 17 00:00:00 2001 From: Jamie Kyle <113370520+jamiebuilds-signal@users.noreply.github.com> Date: Wed, 13 Dec 2023 09:10:36 -0800 Subject: [PATCH] Fix unread count for group conversations you left --- ts/util/countUnreadStats.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts/util/countUnreadStats.ts b/ts/util/countUnreadStats.ts index ad9de0d5db4..edb4a365fbf 100644 --- a/ts/util/countUnreadStats.ts +++ b/ts/util/countUnreadStats.ts @@ -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; }