mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 03:42:56 +00:00
Fixed poll checkmark persisting after vote retraction.
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user