From f68466b07265c7c733f8fe03f1a2efbd5b4f9120 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 20 Sep 2018 10:45:52 +0300 Subject: [PATCH] Don't scroll chats up when searching in chat. --- 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 ee2b054391..d36e3c31cf 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp @@ -232,7 +232,7 @@ void DialogsWidget::repaintDialogRow( } void DialogsWidget::dialogsToUp() { - if (_filter->getLastText().trimmed().isEmpty()) { + if (_filter->getLastText().trimmed().isEmpty() && !_searchInChat) { _scroll->scrollToY(0); } }