Show decryption error on TimelinePollView

This commit is contained in:
Alfonso Grillo
2022-12-23 12:08:25 +01:00
parent c946009c24
commit 359f44cb30
6 changed files with 19 additions and 3 deletions
@@ -64,13 +64,15 @@ struct TimelinePollDetails {
var type: TimelinePollType
var maxAllowedSelections: UInt
var hasBeenEdited = true
var hasDecryptionError: Bool
init(question: String, answerOptions: [TimelinePollAnswerOption],
closed: Bool,
totalAnswerCount: UInt,
type: TimelinePollType,
maxAllowedSelections: UInt,
hasBeenEdited: Bool) {
hasBeenEdited: Bool,
hasDecryptionError: Bool) {
self.question = question
self.answerOptions = answerOptions
self.closed = closed
@@ -78,6 +80,7 @@ struct TimelinePollDetails {
self.type = type
self.maxAllowedSelections = maxAllowedSelections
self.hasBeenEdited = hasBeenEdited
self.hasDecryptionError = hasDecryptionError
}
var hasCurrentUserVoted: Bool {