Update PollManager.cpp
This commit is contained in:
parent
4e6ebda223
commit
58d3c6c830
@ -496,11 +496,11 @@ vector<int32> PollManager::get_vote_percentage(const vector<int32> &voter_counts
|
||||
td_api::object_ptr<td_api::poll> PollManager::get_poll_object(PollId poll_id) const {
|
||||
auto poll = get_poll(poll_id);
|
||||
if (!(poll != nullptr)) {
|
||||
vector<td_api::object_ptr<td_api::pollOption>> poll_options = [];
|
||||
vector<td_api::object_ptr<td_api::pollOption>> poll_options;
|
||||
poll_options.push_back(td_api::make_object<td_api::pollOption>(
|
||||
"empty", 0, 0, false,
|
||||
false));
|
||||
vector<int32> votes = [];
|
||||
vector<int32> votes;
|
||||
return td_api::make_object<td_api::poll>(
|
||||
poll_id.get(), poll->question, std::move(poll_options), 0,
|
||||
std::move(votes), true,
|
||||
|
Loading…
Reference in New Issue
Block a user