diff --git a/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp index 7587706a8..6789e88de 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp @@ -3342,7 +3342,8 @@ void InnerWidget::saveChatsFilterScrollState(FilterId filterId) { void InnerWidget::restoreChatsFilterScrollState(FilterId filterId) { const auto it = _chatsFilterScrollStates.find(filterId); if (it != end(_chatsFilterScrollStates)) { - _mustScrollTo.fire({ it->second, -1 }); + const auto top = std::max(it->second, defaultScrollTop()); + _mustScrollTo.fire({ top, -1 }); } }