mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fix infinite 'Loading...' when no members in the group.
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user