| 650 | } |
| 651 | |
| 652 | ChatParticipants::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 | |
| 665 | void ChatParticipants::Restrict( |
| 666 | not_null<ChannelData*> channel, |
nothing calls this directly
no test coverage detected