If we can't find a feed, it must be deleted by another device, so consider it a success. Fixes #3042

This commit is contained in:
Maurice Parker 2021-05-12 19:53:34 -05:00
parent 1e5091013d
commit 802dd503d6
1 changed files with 5 additions and 1 deletions

View File

@ -180,7 +180,11 @@ final class CloudKitAccountZone: CloudKitZone {
}
case .failure(let error):
completion(.failure(error))
if let ckError = ((error as? CloudKitError)?.error as? CKError), ckError.code == .unknownItem {
completion(.success(true))
} else {
completion(.failure(error))
}
}
}
}