From 45c52be9291bede16754e59a581394fbd9530147 Mon Sep 17 00:00:00 2001 From: Nuno Vieira Date: Fri, 27 Sep 2024 01:19:21 +0100 Subject: [PATCH] Fix being able to tap on options in a closed poll --- Sources/StreamChatUI/ChatMessageList/ChatMessageListVC.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/StreamChatUI/ChatMessageList/ChatMessageListVC.swift b/Sources/StreamChatUI/ChatMessageList/ChatMessageListVC.swift index e8904176f9..e399bb22f7 100644 --- a/Sources/StreamChatUI/ChatMessageList/ChatMessageListVC.swift +++ b/Sources/StreamChatUI/ChatMessageList/ChatMessageListVC.swift @@ -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