mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Edit pre-history visibility in megagroups.
This commit is contained in:
@@ -736,13 +736,11 @@ void ApiWrap::applyLastParticipantsList(
|
||||
if (!keyboardBotFound) {
|
||||
h->clearLastKeyboard();
|
||||
}
|
||||
int newMembersCount = qMax(fullCount, list.size());
|
||||
if (newMembersCount > peer->membersCount()) {
|
||||
peer->setMembersCount(newMembersCount);
|
||||
}
|
||||
if (!bots) {
|
||||
if (list.isEmpty()) {
|
||||
peer->setMembersCount(peer->mgInfo->lastParticipants.size());
|
||||
} else {
|
||||
peer->setMembersCount(fullCount);
|
||||
}
|
||||
Notify::PeerUpdate update(peer);
|
||||
update.flags |= Notify::PeerUpdate::Flag::MembersChanged | Notify::PeerUpdate::Flag::AdminsChanged;
|
||||
|
Reference in New Issue
Block a user