From a1f2fb46f9f31015df305dd5ebf8a9d78196c28a Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 27 May 2017 13:23:59 +0300 Subject: [PATCH] Fix scroll history to down with unread bar. Regression was introduced in 972b5078f6. When we show history at a specific message or at unread messages we need to clear and destroy old showFrom and unreadBar like it is done in historyLoaded(), otherwise we always scroll to existing unreadBar. --- Telegram/SourceFiles/historywidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/historywidget.cpp b/Telegram/SourceFiles/historywidget.cpp index 5495675bd..b1d0e6566 100644 --- a/Telegram/SourceFiles/historywidget.cpp +++ b/Telegram/SourceFiles/historywidget.cpp @@ -1794,6 +1794,9 @@ void HistoryWidget::showHistory(const PeerId &peerId, MsgId showAtMsgId, bool re setMsgId(showAtMsgId); if (_historyInited) { + countHistoryShowFrom(); + destroyUnreadBar(); + auto item = getItemFromHistoryOrMigrated(_showAtMsgId); animatedScrollToY(countInitialScrollTop(), item); highlightMessage(item);