Skip to content

Commit

Permalink
element-hq/element-ios/issues/5114 - Fixed poll aggregator min answer…
Browse files Browse the repository at this point in the history
… option count check.
  • Loading branch information
stefanceriu committed Jan 19, 2022
1 parent 7b70a67 commit d0ecba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MatrixSDK/Room/Polls/PollAggregator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public class PollAggregator {
private func buildPollStartContent() throws {
guard let event = session.store.event(withEventId: pollStartEventId, inRoom: room.roomId),
let eventContent = MXEventContentPollStart(fromJSON: event.content),
eventContent.answerOptions.count > Constants.minAnswerOptionCount
eventContent.answerOptions.count >= Constants.minAnswerOptionCount
else {
throw PollAggregatorError.invalidPollStartEvent
}
Expand Down

0 comments on commit d0ecba5

Please sign in to comment.