mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix admins list restore in group profile.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user