mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
Handle live polls
This commit is contained in:
@@ -97,6 +97,14 @@ private extension PollHistoryViewModel {
|
||||
.fetchedUpTo
|
||||
.weakAssign(to: \.state.syncedUpTo, on: self)
|
||||
.store(in: &subcriptions)
|
||||
|
||||
pollService
|
||||
.livePolls
|
||||
.sink { [weak self] livePoll in
|
||||
self?.add(polls: [livePoll])
|
||||
self?.updateViewState()
|
||||
}
|
||||
.store(in: &subcriptions)
|
||||
}
|
||||
|
||||
func update(poll: TimelinePollDetails) {
|
||||
|
||||
Reference in New Issue
Block a user