From 1d4cecc66d52a8b4ffe4fd543929ccb60fe1649d Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sat, 2 May 2026 11:32:22 +0300 Subject: [PATCH] Fixed poll checkmark persisting after vote retraction. --- Telegram/SourceFiles/api/api_polls.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/api/api_polls.cpp b/Telegram/SourceFiles/api/api_polls.cpp index a1f68a4110..09dcd0a064 100644 --- a/Telegram/SourceFiles/api/api_polls.cpp +++ b/Telegram/SourceFiles/api/api_polls.cpp @@ -164,6 +164,12 @@ void Polls::sendVotes( if (showSending) { poll->sendingVotes = options; _session->data().requestItemRepaint(item); + } else if (poll && options.empty() && poll->voted()) { + for (auto &answer : poll->answers) { + answer.chosen = false; + } + ++poll->version; + _session->data().notifyPollUpdateDelayed(poll); } auto prepared = QVector();