From ea9bb2ae1e2e487e2ee94c66c881c2a31a57e398 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 7 Mar 2026 14:47:00 -0800 Subject: [PATCH] Reference account instead of account.settings. --- Modules/Account/Sources/Account/AccountManager.swift | 2 +- .../Sources/Account/CloudKit/CloudKitAccountDelegate.swift | 2 +- .../Sources/Account/LocalAccount/LocalAccountDelegate.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/Account/Sources/Account/AccountManager.swift b/Modules/Account/Sources/Account/AccountManager.swift index b37b4e9c6..04fe1b6c3 100644 --- a/Modules/Account/Sources/Account/AccountManager.swift +++ b/Modules/Account/Sources/Account/AccountManager.swift @@ -79,7 +79,7 @@ import RSDatabase public var lastArticleFetchEndTime: Date? { var lastArticleFetchEndTime: Date? for account in activeAccounts { - if let accountLastArticleFetchEndTime = account.settings.lastArticleFetchEndTime { + if let accountLastArticleFetchEndTime = account.lastArticleFetchEndTime { if lastArticleFetchEndTime == nil || lastArticleFetchEndTime! < accountLastArticleFetchEndTime { lastArticleFetchEndTime = accountLastArticleFetchEndTime } diff --git a/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift b/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift index 6d845cb81..ed4a0e849 100644 --- a/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift +++ b/Modules/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift @@ -531,7 +531,7 @@ private extension CloudKitAccountDelegate { } syncProgress.reset() - account.settings.lastArticleFetchEndTime = Date() + account.lastArticleFetchEndTime = Date() } catch { processAccountError(account, error) syncProgress.reset() diff --git a/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift b/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift index 4d1d95bb4..efb414b5b 100644 --- a/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift +++ b/Modules/Account/Sources/Account/LocalAccount/LocalAccountDelegate.swift @@ -50,7 +50,7 @@ import Secrets let feeds = account.flattenedFeeds() await refresher.refreshFeeds(feeds) - account.settings.lastArticleFetchEndTime = Date() + account.lastArticleFetchEndTime = Date() } @MainActor func syncArticleStatus(for account: Account) async throws {