From 687d3a0cec9d192c8ee1ee0a1255d6f3a0217e95 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 1 Feb 2025 20:04:30 -0800 Subject: [PATCH] Make AppDelegate iOS *not* UnreadCountProvider. Have it not send notification on unreadCountDidChange. --- iOS/AppDelegate.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index 8ed77d222..2ebbc6419 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -13,7 +13,7 @@ import RSCore import Account @UIApplicationMain -final class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate, UnreadCountProvider { +final class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate { var window: UIWindow? @@ -30,10 +30,9 @@ final class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationC var extensionFeedAddRequestFile: ExtensionFeedAddRequestFile! var widgetDataEncoder: WidgetDataEncoder! - var unreadCount = 0 { + private var unreadCount = 0 { didSet { if unreadCount != oldValue { - postUnreadCountDidChangeNotification() UNUserNotificationCenter.current().setBadgeCount(unreadCount) } }