From 16cac78880ddf472d86d5078e51f5630e88ad818 Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Mon, 12 Dec 2022 16:47:36 +1100 Subject: [PATCH] fix app badge number --- Session/Meta/AppDelegate.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Session/Meta/AppDelegate.swift b/Session/Meta/AppDelegate.swift index d91851597..d74c12a58 100644 --- a/Session/Meta/AppDelegate.swift +++ b/Session/Meta/AppDelegate.swift @@ -455,9 +455,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD return try Interaction .filter(Interaction.Columns.wasRead == false) .filter( - // Exclude outgoing and deleted messages from the count - Interaction.Columns.variant != Interaction.Variant.standardOutgoing && - Interaction.Columns.variant != Interaction.Variant.standardIncomingDeleted + Interaction.Columns.variant == Interaction.Variant.standardIncoming || + Interaction.Columns.variant == Interaction.Variant.infoCall ) .filter( // Only count mentions if 'onlyNotifyForMentions' is set