From 53f1893b97165c1156bedd4c770c0c4eb92b0dd6 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Sun, 11 Sep 2022 06:51:07 +0300 Subject: [PATCH] [Improvement] Scroll to dialog on back button click --- Telegram/SourceFiles/mainwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index 0a8962715..20a4a994d 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -1467,13 +1467,13 @@ void MainWidget::ui_showPeerHistory( } if (_dialogs && !_dialogs->isHidden()) { - if (!back) { + // if (!back) { if (const auto history = _history->history()) { _dialogs->scrollToEntry(Dialogs::RowDescriptor( history, FullMsgId(history->peer->id, showAtMsgId))); } - } + // } _dialogs->update(); }