Ignore recent_voters for bots.
GitOrigin-RevId: 9a24c6b18364684a35a751a528cf332b69240de6
This commit is contained in:
parent
161b932256
commit
3bcbda16b1
@ -1289,12 +1289,14 @@ PollId PollManager::on_get_poll(PollId poll_id, tl_object_ptr<telegram_api::poll
|
|||||||
LOG(ERROR) << "Receive correct option " << correct_option_id << " in non-quiz " << poll_id;
|
LOG(ERROR) << "Receive correct option " << correct_option_id << " in non-quiz " << poll_id;
|
||||||
}
|
}
|
||||||
vector<UserId> recent_voter_user_ids;
|
vector<UserId> recent_voter_user_ids;
|
||||||
for (auto &user_id_int : poll_results->recent_voters_) {
|
if (!td_->auth_manager_->is_bot()) {
|
||||||
UserId user_id(user_id_int);
|
for (auto &user_id_int : poll_results->recent_voters_) {
|
||||||
if (user_id.is_valid()) {
|
UserId user_id(user_id_int);
|
||||||
recent_voter_user_ids.push_back(user_id);
|
if (user_id.is_valid()) {
|
||||||
} else {
|
recent_voter_user_ids.push_back(user_id);
|
||||||
LOG(ERROR) << "Receive " << user_id << " as recent voter in " << poll_id;
|
} else {
|
||||||
|
LOG(ERROR) << "Receive " << user_id << " as recent voter in " << poll_id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (poll->is_anonymous && !recent_voter_user_ids.empty()) {
|
if (poll->is_anonymous && !recent_voter_user_ids.empty()) {
|
||||||
|
Reference in New Issue
Block a user