Move call to sendArticleStatus to delegate.
This commit is contained in:
parent
0447694142
commit
534da0bca6
|
@ -298,10 +298,8 @@ public final class Account: DisplayNameProvider, UnreadCountProvider, Container,
|
|||
}
|
||||
|
||||
public func refreshAll(completion: @escaping (Result<Void, Error>) -> Void) {
|
||||
delegate.sendArticleStatus(for: self) { [unowned self] in
|
||||
self.delegate.refreshAll(for: self, completion: completion)
|
||||
}
|
||||
}
|
||||
|
||||
public func syncArticleStatus(completion: (() -> Void)? = nil) {
|
||||
delegate.sendArticleStatus(for: self) { [unowned self] in
|
||||
|
|
|
@ -88,6 +88,7 @@ final class FeedbinAccountDelegate: AccountDelegate {
|
|||
case .success():
|
||||
|
||||
self.refreshArticles(account) {
|
||||
self.sendArticleStatus(for: account) {
|
||||
self.refreshArticleStatus(for: account) {
|
||||
self.refreshMissingArticles(account) {
|
||||
self.refreshProgress.clear()
|
||||
|
@ -97,6 +98,7 @@ final class FeedbinAccountDelegate: AccountDelegate {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
case .failure(let error):
|
||||
DispatchQueue.main.async {
|
||||
|
|
Loading…
Reference in New Issue