mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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;
|
return true;
|
||||||
}();
|
}();
|
||||||
if (same) {
|
if (same) {
|
||||||
|
if (!_allLoaded && !delegate()->peerListFullRowsCount()) {
|
||||||
|
chatListReady();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -247,7 +247,7 @@ rpl::producer<int> AdminsCountValue(not_null<PeerData*> peer) {
|
||||||
) | rpl::map([=] {
|
) | rpl::map([=] {
|
||||||
return chat->participants.empty()
|
return chat->participants.empty()
|
||||||
? 0
|
? 0
|
||||||
: int(chat->admins.size() + 1); // + creator
|
: int(chat->admins.size() + (chat->creator ? 1 : 0));
|
||||||
});
|
});
|
||||||
} else if (const auto channel = peer->asChannel()) {
|
} else if (const auto channel = peer->asChannel()) {
|
||||||
return peer->session().changes().peerFlagsValue(
|
return peer->session().changes().peerFlagsValue(
|
||||||
|
|
Loading…
Add table
Reference in a new issue