mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix admin/creator status in megagroup members list.
This commit is contained in:
parent
d77afef8b0
commit
727f8aec13
1 changed files with 8 additions and 2 deletions
|
@ -517,7 +517,7 @@ void ParticipantsBoxController::setNonEmptyDescription() {
|
||||||
|
|
||||||
bool ParticipantsBoxController::feedMegagroupLastParticipants() {
|
bool ParticipantsBoxController::feedMegagroupLastParticipants() {
|
||||||
if ((_role != Role::Members && _role != Role::Profile)
|
if ((_role != Role::Members && _role != Role::Profile)
|
||||||
|| _offset > 0) {
|
|| delegate()->peerListFullRowsCount() > 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
auto megagroup = _channel->asMegagroup();
|
auto megagroup = _channel->asMegagroup();
|
||||||
|
@ -564,7 +564,13 @@ bool ParticipantsBoxController::feedMegagroupLastParticipants() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
appendRow(user);
|
appendRow(user);
|
||||||
++_offset;
|
|
||||||
|
//
|
||||||
|
// Don't count lastParticipants in _offset, because we don't know
|
||||||
|
// their exact information (admin / creator / restricted), they
|
||||||
|
// could simply be added from the last messages authors.
|
||||||
|
//
|
||||||
|
//++_offset;
|
||||||
}
|
}
|
||||||
sortByOnline();
|
sortByOnline();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue