From 1a99c955b0c64eae869d5b4b1ddb22f493bfc7a4 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 28 Apr 2024 14:12:03 -0700 Subject: [PATCH] Create idsforMissingArticles function to replace FeedlyFetchIDsForMissingArticlesOperation. --- .../Account/AccountDelegates/FeedlyAccountDelegate.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate.swift b/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate.swift index 6ea67ba45..5c9ce3197 100644 --- a/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate.swift +++ b/Account/Sources/Account/AccountDelegates/FeedlyAccountDelegate.swift @@ -821,6 +821,15 @@ final class FeedlyAccountDelegate: AccountDelegate { } } + func idsforMissingArticles() async throws -> Set? { + + // To replace FeedlyFetchIDsForMissingArticlesOperation + + guard let account else { return nil } + + return try await account.fetchArticleIDsForStatusesWithoutArticlesNewerThanCutoffDate() + } + // MARK: Suspend and Resume (for iOS) /// Suspend all network activity