Skip to content

Commit

Permalink
Fix being able to tap on options in a closed poll
Browse files Browse the repository at this point in the history
  • Loading branch information
nuno-vieira committed Sep 27, 2024
1 parent e55d9b1 commit 45c52be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ open class ChatMessageListVC: _ViewController,
didTapOption option: PollOption,
in message: ChatMessage
) {
guard let poll = message.poll else { return }
guard let poll = message.poll, !poll.isClosed else { return }

if pollOptionsCastingVote.contains(option.id) {
return
Expand Down

0 comments on commit 45c52be

Please sign in to comment.