mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 19:10:49 +02:00
merged element 1.10.12 into bum
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ enum MockPollHistoryDetailScreenState: MockScreenState, CaseIterable {
|
||||
}
|
||||
|
||||
var screenView: ([Any], AnyView) {
|
||||
let timelineViewModel = TimelinePollViewModel(timelinePollDetails: poll)
|
||||
let timelineViewModel = TimelinePollViewModel(timelinePollDetailsState: .loaded(poll))
|
||||
let viewModel = PollHistoryDetailViewModel(poll: poll)
|
||||
|
||||
return ([viewModel], AnyView(PollHistoryDetail(viewModel: viewModel.context, contentPoll: TimelinePollView(viewModel: timelineViewModel.context))))
|
||||
|
||||
@@ -209,13 +209,13 @@ extension PollHistoryService: PollAggregatorDelegate {
|
||||
func pollAggregator(_ aggregator: PollAggregator, didFailWithError: Error) { }
|
||||
|
||||
func pollAggregatorDidEndLoading(_ aggregator: PollAggregator) {
|
||||
guard let context = pollAggregationContexts[aggregator.poll.id], context.published == false else {
|
||||
guard let poll = aggregator.poll, let context = pollAggregationContexts[poll.id], context.published == false else {
|
||||
return
|
||||
}
|
||||
|
||||
context.published = true
|
||||
|
||||
let newPoll: TimelinePollDetails = .init(poll: aggregator.poll, represent: .started)
|
||||
let newPoll: TimelinePollDetails = .init(poll: poll, represent: .started)
|
||||
|
||||
if context.isLivePoll {
|
||||
livePollsSubject.send(newPoll)
|
||||
@@ -225,9 +225,9 @@ extension PollHistoryService: PollAggregatorDelegate {
|
||||
}
|
||||
|
||||
func pollAggregatorDidUpdateData(_ aggregator: PollAggregator) {
|
||||
guard let context = pollAggregationContexts[aggregator.poll.id], context.published else {
|
||||
guard let poll = aggregator.poll, let context = pollAggregationContexts[poll.id], context.published else {
|
||||
return
|
||||
}
|
||||
updatesSubject.send(.init(poll: aggregator.poll, represent: .started))
|
||||
updatesSubject.send(.init(poll: poll, represent: .started))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user