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

Method ParseRecent

Telegram/SourceFiles/api/api_chat_participants.cpp:652–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652ChatParticipants::Parsed ChatParticipants::ParseRecent(
653 not_null<ChannelData*> channel,
654 const TLMembers &data) {
655 const auto result = Parse(channel, data);
656 const auto applyLast = channel->isMegagroup()
657 && channel->canViewMembers()
658 && (channel->mgInfo->lastParticipants.size() <= result.list.size());
659 if (applyLast) {
660 ApplyLastList(channel, result.availableCount, result.list);
661 }
662 return result;
663}
664
665void ChatParticipants::Restrict(
666 not_null<ChannelData*> channel,

Callers

nothing calls this directly

Calls 5

ApplyLastListFunction · 0.85
canViewMembersMethod · 0.80
ParseFunction · 0.70
isMegagroupMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected