Add missing story fetching handler
This commit is contained in:
parent
299619703c
commit
bf1a732e8f
|
@ -232,14 +232,13 @@ extension NewsBlurAccountDelegate {
|
||||||
caller.retrieveFeeds { result in
|
caller.retrieveFeeds { result in
|
||||||
switch result {
|
switch result {
|
||||||
case .success((let feeds, let folders)):
|
case .success((let feeds, let folders)):
|
||||||
self.refreshProgress.completeTask()
|
|
||||||
|
|
||||||
BatchUpdate.shared.perform {
|
BatchUpdate.shared.perform {
|
||||||
self.syncFolders(account, folders)
|
self.syncFolders(account, folders)
|
||||||
self.syncFeeds(account, feeds)
|
self.syncFeeds(account, feeds)
|
||||||
self.syncFeedFolderRelationship(account, folders)
|
self.syncFeedFolderRelationship(account, folders)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.refreshProgress.completeTask()
|
||||||
completion(.success(()))
|
completion(.success(()))
|
||||||
case .failure(let error):
|
case .failure(let error):
|
||||||
completion(.failure(error))
|
completion(.failure(error))
|
||||||
|
@ -451,7 +450,15 @@ extension NewsBlurAccountDelegate {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
self.refreshUnreadStories(for: account, hashes: Array(hashes[numberOfStories...]), updateFetchDate: updateFetchDate, completion: completion)
|
self.refreshUnreadStories(for: account, hashes: Array(hashes[numberOfStories...]), updateFetchDate: updateFetchDate) { result in
|
||||||
|
os_log(.debug, log: self.log, "Done refreshing stories.")
|
||||||
|
switch result {
|
||||||
|
case .success:
|
||||||
|
completion(.success(()))
|
||||||
|
case .failure(let error):
|
||||||
|
completion(.failure(error))
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case .failure(let error):
|
case .failure(let error):
|
||||||
completion(.failure(error))
|
completion(.failure(error))
|
||||||
|
|
Loading…
Reference in New Issue