Customize TimePollView for poll.end events

This commit is contained in:
Alfonso Grillo
2022-12-28 16:35:49 +01:00
parent d982174efe
commit d95a47ba80
7 changed files with 28 additions and 0 deletions
@@ -131,6 +131,7 @@ final class TimelinePollCoordinator: Coordinator, Presentable, PollAggregatorDel
closed: poll.isClosed,
totalAnswerCount: poll.totalAnswerCount,
type: pollKindToTimelinePollType(poll.kind),
eventType: parameters.pollEvent.eventType == .pollStart ? .started : .ended,
maxAllowedSelections: poll.maxAllowedSelections,
hasBeenEdited: poll.hasBeenEdited,
hasDecryptionError: poll.hasDecryptionError)