From e66d9d5d249d03fd64f5e45d0bad2a9770faf68b Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 30 Jun 2023 20:43:18 +0400 Subject: [PATCH] Fix jump to top on a new message send. --- Telegram/SourceFiles/dialogs/dialogs_widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp index e921e8ec10..6c3e2e0597 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp @@ -1111,7 +1111,7 @@ void Widget::jumpToTop(bool belowPinned) { return; } if ((currentSearchQuery().trimmed().isEmpty() && !_searchInChat)) { - auto to = 0; + auto to = _inner->defaultScrollTop(); if (belowPinned) { const auto list = _openedForum ? _openedForum->topicsList()