mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Notification Profiles: Exclude silenced conversations from badge count
This commit is contained in:
@@ -157,13 +157,13 @@ export function countConversationUnreadStats(
|
||||
}
|
||||
|
||||
export function countAllConversationsUnreadStats(
|
||||
conversations: ReadonlyArray<ConversationPropsForUnreadStats>,
|
||||
conversations: ReadonlyArray<ConversationPropsForUnreadStats | undefined>,
|
||||
options: UnreadStatsOptions
|
||||
): UnreadStats {
|
||||
const unreadStats = _createUnreadStats();
|
||||
|
||||
for (const conversation of conversations) {
|
||||
if (_canCountConversation(conversation, options)) {
|
||||
if (conversation && _canCountConversation(conversation, options)) {
|
||||
_countConversation(unreadStats, conversation);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user