mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix admins list restore in group profile.
This commit is contained in:
parent
e7312697bf
commit
fd3169f82d
1 changed files with 7 additions and 3 deletions
|
@ -1165,15 +1165,19 @@ void ParticipantsBoxController::restoreState(
|
|||
if (my->wasLoading) {
|
||||
loadMoreRows();
|
||||
}
|
||||
const auto was = _fullCountValue.current();
|
||||
PeerListController::restoreState(std::move(state));
|
||||
const auto count = delegate()->peerListFullRowsCount();
|
||||
if (count > 0 || _allLoaded) {
|
||||
const auto now = delegate()->peerListFullRowsCount();
|
||||
if (now > 0 || _allLoaded) {
|
||||
refreshDescription();
|
||||
if (_stories) {
|
||||
for (auto i = 0; i != count; ++i) {
|
||||
for (auto i = 0; i != now; ++i) {
|
||||
_stories->process(delegate()->peerListRowAt(i));
|
||||
}
|
||||
}
|
||||
if (now != was) {
|
||||
refreshRows();
|
||||
}
|
||||
}
|
||||
if (_onlineSorter) {
|
||||
_onlineSorter->sort();
|
||||
|
|
Loading…
Add table
Reference in a new issue