Feature/4383 poll participants details

This commit is contained in:
Frank Rotermund
2023-05-31 14:31:07 +00:00
committed by Arnfried Griesert
parent 00286183f6
commit 9bd569dac0
22 changed files with 462 additions and 19 deletions
@@ -26,6 +26,7 @@ enum TimelinePollViewAction {
enum TimelinePollViewModelResult {
case selectedAnswerOptionsWithIdentifiers([String])
case showParticipants
}
enum TimelinePollType {
@@ -44,13 +45,15 @@ struct TimelinePollAnswerOption: Identifiable {
var count: UInt
var winner: Bool
var selected: Bool
var voters: [MXEvent]
init(id: String, text: String, count: UInt, winner: Bool, selected: Bool) {
init(id: String, text: String, count: UInt, winner: Bool, selected: Bool, voters: [MXEvent]) {
self.id = id
self.text = text
self.count = count
self.winner = winner
self.selected = selected
self.voters = voters
}
}