diff --git a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift index 5df09c1d8..46da00c64 100644 --- a/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift +++ b/Frameworks/Account/CloudKit/CloudKitAccountDelegate.swift @@ -187,7 +187,7 @@ final class CloudKitAccountDelegate: AccountDelegate { return } - refreshProgress.addToNumberOfTasksAndRemaining(3) + refreshProgress.addToNumberOfTasksAndRemaining(4) FeedFinder.find(url: url) { result in self.refreshProgress.completeTask() @@ -216,6 +216,13 @@ final class CloudKitAccountDelegate: AccountDelegate { feed.externalID = externalID container.addWebFeed(feed) + self.publicZone.createSubscription(feed) { result in + self.refreshProgress.completeTask() + if case .failure(let error) = result { + os_log(.error, log: self.log, "Restore folder feed error: %@.", error.localizedDescription) + } + } + InitialFeedDownloader.download(url) { parsedFeed in self.refreshProgress.completeTask() diff --git a/Frameworks/Account/CloudKit/CloudKitPublicZone.swift b/Frameworks/Account/CloudKit/CloudKitPublicZone.swift index c6ce1cffc..0cfe3eee1 100644 --- a/Frameworks/Account/CloudKit/CloudKitPublicZone.swift +++ b/Frameworks/Account/CloudKit/CloudKitPublicZone.swift @@ -48,11 +48,15 @@ final class CloudKitPublicZone: CloudKitZone { func subscribe() {} func receiveRemoteNotification(userInfo: [AnyHashable : Any], completion: @escaping () -> Void) { - + completion() + } + + func createSubscription(_ webFeed: WebFeed, completion: @escaping (Result) -> Void) { + completion(.success(())) } func removeSubscription(_ webFeed: WebFeed, completion: @escaping (Result) -> Void) { - + completion(.success(())) } }