mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Improve error handling
This commit is contained in:
parent
31ca4e3e38
commit
8138410e1e
1 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,6 @@ private extension PollHistoryViewModel {
|
|||
self?.handleBatchEnded(completion: completion)
|
||||
} receiveValue: { [weak self] polls in
|
||||
self?.add(polls: polls)
|
||||
self?.updateViewState()
|
||||
}
|
||||
.store(in: &subcriptions)
|
||||
}
|
||||
|
@ -71,8 +70,11 @@ private extension PollHistoryViewModel {
|
|||
case .finished:
|
||||
break
|
||||
case .failure:
|
||||
polls = polls ?? []
|
||||
self.completion?(.genericError)
|
||||
}
|
||||
|
||||
updateViewState()
|
||||
}
|
||||
|
||||
func setupUpdateSubscriptions() {
|
||||
|
|
Loading…
Reference in a new issue