mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Show admins in participants_hidden group info.
This commit is contained in:
@@ -263,8 +263,11 @@ bool ChannelData::linkedChatKnown() const {
|
||||
|
||||
void ChannelData::setMembersCount(int newMembersCount) {
|
||||
if (_membersCount != newMembersCount) {
|
||||
if (isMegagroup() && !mgInfo->lastParticipants.empty()) {
|
||||
mgInfo->lastParticipantsStatus |= MegagroupInfo::LastParticipantsCountOutdated;
|
||||
if (isMegagroup()
|
||||
&& canViewMembers()
|
||||
&& !mgInfo->lastParticipants.empty()) {
|
||||
mgInfo->lastParticipantsStatus
|
||||
|= MegagroupInfo::LastParticipantsCountOutdated;
|
||||
mgInfo->lastParticipantsCount = membersCount();
|
||||
}
|
||||
_membersCount = newMembersCount;
|
||||
@@ -485,7 +488,7 @@ bool ChannelData::isGroupAdmin(not_null<UserData*> user) const {
|
||||
}
|
||||
|
||||
bool ChannelData::lastParticipantsRequestNeeded() const {
|
||||
if (!mgInfo) {
|
||||
if (!mgInfo || !canViewMembers()) {
|
||||
return false;
|
||||
} else if (mgInfo->lastParticipantsCount == membersCount()) {
|
||||
mgInfo->lastParticipantsStatus
|
||||
|
Reference in New Issue
Block a user