2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Suggest group-with-hidden-members admins in mentions.

This commit is contained in:
John Preston
2023-08-11 18:12:35 +02:00
parent 027e662478
commit d52475666d
5 changed files with 28 additions and 6 deletions

View File

@@ -1505,6 +1505,11 @@ void ParticipantsBoxController::loadMoreRows() {
LOG(("API Error: "
"channels.channelParticipantsNotModified received!"));
});
if (_offset > 0 && _role == Role::Admins && channel->isMegagroup()) {
if (channel->mgInfo->admins.empty() && channel->mgInfo->adminsLoaded) {
channel->mgInfo->adminsLoaded = false;
}
}
if (!firstLoad && !added) {
_allLoaded = true;
}