mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto added = false;
|
||||||
_additional.fillFromPeer();
|
_additional.fillFromPeer();
|
||||||
for (const auto user : info->lastParticipants) {
|
for (const auto user : info->lastParticipants) {
|
||||||
appendRow(user);
|
if (appendRow(user)) {
|
||||||
|
added = true;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Don't count lastParticipants in _offset, because we don't know
|
// Don't count lastParticipants in _offset, because we don't know
|
||||||
|
@ -1383,7 +1386,7 @@ bool ParticipantsBoxController::feedMegagroupLastParticipants() {
|
||||||
if (_onlineSorter) {
|
if (_onlineSorter) {
|
||||||
_onlineSorter->sort();
|
_onlineSorter->sort();
|
||||||
}
|
}
|
||||||
return true;
|
return added;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ParticipantsBoxController::rowClicked(not_null<PeerListRow*> row) {
|
void ParticipantsBoxController::rowClicked(not_null<PeerListRow*> row) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue