mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
if (my->wasLoading) {
|
||||||
loadMoreRows();
|
loadMoreRows();
|
||||||
}
|
}
|
||||||
|
const auto was = _fullCountValue.current();
|
||||||
PeerListController::restoreState(std::move(state));
|
PeerListController::restoreState(std::move(state));
|
||||||
const auto count = delegate()->peerListFullRowsCount();
|
const auto now = delegate()->peerListFullRowsCount();
|
||||||
if (count > 0 || _allLoaded) {
|
if (now > 0 || _allLoaded) {
|
||||||
refreshDescription();
|
refreshDescription();
|
||||||
if (_stories) {
|
if (_stories) {
|
||||||
for (auto i = 0; i != count; ++i) {
|
for (auto i = 0; i != now; ++i) {
|
||||||
_stories->process(delegate()->peerListRowAt(i));
|
_stories->process(delegate()->peerListRowAt(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (now != was) {
|
||||||
|
refreshRows();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (_onlineSorter) {
|
if (_onlineSorter) {
|
||||||
_onlineSorter->sort();
|
_onlineSorter->sort();
|
||||||
|
|
Loading…
Add table
Reference in a new issue