MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / poll

Method poll

Telegram/SourceFiles/data/data_session.cpp:4503–4509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4501}
4502
4503not_null<PollData*> Session::poll(PollId id) {
4504 auto i = _polls.find(id);
4505 if (i == _polls.cend()) {
4506 i = _polls.emplace(id, std::make_unique<PollData>(this, id)).first;
4507 }
4508 return i->second.get();
4509}
4510
4511HistoryItem *Session::findItemForPoll(PollId id) const {
4512 const auto i = _polls.find(id);

Callers 15

createThumbMethod · 0.45
currentPollAnswerMethod · 0.45
refreshVoteButtonMethod · 0.45
sharedMediaTypeMethod · 0.45
collageKeyMethod · 0.45
validateCollageMethod · 0.45
refreshCaptionMethod · 0.45
sendVotesMethod · 0.45

Calls 4

emplaceMethod · 0.80
findMethod · 0.45
cendMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected