mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fix infinite 'Loading...' when no members in the group.
This commit is contained in:
parent
146a9c2794
commit
b68d5f854d
1 changed files with 5 additions and 2 deletions
|
@ -1369,9 +1369,12 @@ bool ParticipantsBoxController::feedMegagroupLastParticipants() {
|
|||
return false;
|
||||
}
|
||||
|
||||
auto added = false;
|
||||
_additional.fillFromPeer();
|
||||
for (const auto user : info->lastParticipants) {
|
||||
appendRow(user);
|
||||
if (appendRow(user)) {
|
||||
added = true;
|
||||
}
|
||||
|
||||
//
|
||||
// Don't count lastParticipants in _offset, because we don't know
|
||||
|
@ -1383,7 +1386,7 @@ bool ParticipantsBoxController::feedMegagroupLastParticipants() {
|
|||
if (_onlineSorter) {
|
||||
_onlineSorter->sort();
|
||||
}
|
||||
return true;
|
||||
return added;
|
||||
}
|
||||
|
||||
void ParticipantsBoxController::rowClicked(not_null<PeerListRow*> row) {
|
||||
|
|
Loading…
Add table
Reference in a new issue