diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index e6f25a9ce..0dd99bad3 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -157,13 +157,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD func prepareAccountsForForeground() { extensionFeedAddRequestFile.resume() - + syncTimer?.update() + if let lastRefresh = AppDefaults.lastRefresh { if Date() > lastRefresh.addingTimeInterval(15 * 60) { AccountManager.shared.refreshAll(errorHandler: ErrorHandler.log) } else { AccountManager.shared.syncArticleStatusAll() - syncTimer?.update() } } else { AccountManager.shared.refreshAll(errorHandler: ErrorHandler.log)