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

Method setVoteRestriction

Telegram/SourceFiles/data/data_poll.cpp:407–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void PollData::setVoteRestriction(VoteRestriction restriction) {
408 _voteRestrictionUpdated = (restriction == VoteRestriction::None)
409 ? 0
410 : crl::now();
411 if (_voteRestriction != restriction) {
412 _voteRestriction = restriction;
413 ++version;
414 }
415}
416
417PollData::VoteRestriction PollData::voteRestriction() const {
418 return _voteRestriction;

Callers 1

sendVotesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected