Restore unread and starred articles to iCloud on webbed restore.
This commit is contained in:
parent
ab69846e41
commit
b3b1dab522
|
@ -305,7 +305,16 @@ final class CloudKitAccountDelegate: AccountDelegate {
|
|||
case .success(let externalID):
|
||||
feed.externalID = externalID
|
||||
container.addWebFeed(feed)
|
||||
completion(.success(()))
|
||||
|
||||
account.fetchArticlesAsync(.webFeed(feed)) { result in
|
||||
switch result {
|
||||
case .success(let articles):
|
||||
self.articlesZone.saveNewArticles(articles, completion: completion)
|
||||
case .failure(let error):
|
||||
completion(.failure(error))
|
||||
}
|
||||
}
|
||||
|
||||
case .failure(let error):
|
||||
self.processAccountError(account, error)
|
||||
completion(.failure(error))
|
||||
|
|
Loading…
Reference in New Issue