fix app badge number

pull/941/head
Ryan Zhao 2 years ago
parent 28ee331421
commit 16cac78880

@ -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

Loading…
Cancel
Save