Fixed poll checkmark persisting after vote retraction.

This commit is contained in:
23rd
2026-05-02 11:32:22 +03:00
committed by John Preston
parent d5e8bd767f
commit 1d4cecc66d
+6
View File
@@ -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<MTPbytes>();