From d78d61ad5eb2442b8e66cc7b913c0aef38113ff6 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sat, 12 Nov 2022 15:30:40 -0600 Subject: [PATCH] Fetch all changes for the account zone before processing to avoid problems with things getting out of order due to switching queues --- .../Sources/Account/CloudKit/CloudKitAccountDelegate.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift b/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift index 80e522bfd..a86134963 100644 --- a/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift +++ b/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift @@ -487,7 +487,7 @@ private extension CloudKitAccountDelegate { refreshProgress.isIndeterminate = true refreshProgress.addToNumberOfTasksAndRemaining(3) - accountZone.fetchChangesInZone() { result in + accountZone.fetchChangesInZone(incremental: false) { result in self.refreshProgress.completeTask() let webFeeds = account.flattenedWebFeeds() @@ -534,7 +534,7 @@ private extension CloudKitAccountDelegate { completion(.failure(error)) } - accountZone.fetchChangesInZone() { result in + accountZone.fetchChangesInZone(incremental: false) { result in switch result { case .success: