diff --git a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp index 72291faf4..e1d09efec 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp @@ -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();