From add73763b36015e21ebdef8b11b54ef5b2cc90ee Mon Sep 17 00:00:00 2001 From: Toomas Vahter Date: Wed, 19 Jun 2024 14:44:53 +0300 Subject: [PATCH] Enable controls when end voting fails --- .../ChatChannel/MessageList/Polls/PollAttachmentViewModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollAttachmentViewModel.swift b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollAttachmentViewModel.swift index 884e7c21..e5669846 100644 --- a/Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollAttachmentViewModel.swift +++ b/Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollAttachmentViewModel.swift @@ -10,7 +10,7 @@ public class PollAttachmentViewModel: ObservableObject, PollControllerDelegate { static let numberOfVisibleOptionsShown = 10 private var isCastingVote = false - private var isClosingPoll = false + @Published private var isClosingPoll = false @Injected(\.chatClient) var chatClient