mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Correctly show legacy groups with no admins.
This commit is contained in:
parent
0709bc6d70
commit
2af63ec48f
2 changed files with 4 additions and 1 deletions
|
@ -1212,6 +1212,9 @@ void ParticipantsBoxController::rebuildChatAdmins(
|
|||
return true;
|
||||
}();
|
||||
if (same) {
|
||||
if (!_allLoaded && !delegate()->peerListFullRowsCount()) {
|
||||
chatListReady();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -247,7 +247,7 @@ rpl::producer<int> AdminsCountValue(not_null<PeerData*> peer) {
|
|||
) | rpl::map([=] {
|
||||
return chat->participants.empty()
|
||||
? 0
|
||||
: int(chat->admins.size() + 1); // + creator
|
||||
: int(chat->admins.size() + (chat->creator ? 1 : 0));
|
||||
});
|
||||
} else if (const auto channel = peer->asChannel()) {
|
||||
return peer->session().changes().peerFlagsValue(
|
||||
|
|
Loading…
Add table
Reference in a new issue