Skip to content

Commit

Permalink
Apply correct_option_id from closed min-poll.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: ef1641a295c1022ee6d4cec9a28e30927f25e85b
  • Loading branch information
levlam committed Jan 24, 2020
1 parent 6e79381 commit c08084b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions td/telegram/PollManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,8 @@ PollId PollManager::on_get_poll(PollId poll_id, tl_object_ptr<telegram_api::poll
option.is_chosen = is_chosen;
is_changed = true;
}
}
if (!is_min || poll->is_closed) {
bool is_correct = (poll_result->flags_ & telegram_api::pollAnswerVoters::CORRECT_MASK) != 0;
if (is_correct) {
if (correct_option_id != -1) {
Expand Down

0 comments on commit c08084b

Please sign in to comment.