diff --git a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift index 90443596c..5b1edbabd 100644 --- a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift +++ b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift @@ -69,14 +69,17 @@ final class CloudKitAccountDelegate: AccountDelegate { } func refreshAll(for account: Account, completion: @escaping (Result) -> Void) { + BatchUpdate.shared.start() accountZone.fetchChangesInZone() { result in switch result { case .success: self.refresher.refreshFeeds(account.flattenedWebFeeds()) { + BatchUpdate.shared.end() account.metadata.lastArticleFetchEndTime = Date() completion(.success(())) } case .failure(let error): + BatchUpdate.shared.end() completion(.failure(error)) } }