From bc523c2685893bd4164f1cbe2c0defa90fc19873 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 15 Aug 2023 20:04:03 +0200 Subject: [PATCH] Version 4.9.1: Allow highlighting client side messages. --- Telegram/SourceFiles/history/history_widget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index 138a12a31..3f10e3cc3 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -2014,6 +2014,7 @@ void HistoryWidget::showHistory( return; } if (!IsServerMsgId(showAtMsgId) + && !IsClientMsgId(showAtMsgId) && !IsServerMsgId(-showAtMsgId)) { // To end or to unread. destroyUnreadBar(); @@ -5613,6 +5614,7 @@ int HistoryWidget::countInitialScrollTop() { return _list->historyScrollTop(); } else if (_showAtMsgId && (IsServerMsgId(_showAtMsgId) + || IsClientMsgId(_showAtMsgId) || IsServerMsgId(-_showAtMsgId))) { const auto item = getItemFromHistoryOrMigrated(_showAtMsgId); const auto itemTop = _list->itemTop(item);