From 4463f8870ab6eb6fcb5d0d9c1d4a71bb0de04b01 Mon Sep 17 00:00:00 2001 From: evgeny Date: Thu, 8 Oct 2026 00:50:17 +0200 Subject: [PATCH] Keep the viewed reply target stable until returning to latest messages --- tools/chatgui/src/messagelist.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/chatgui/src/messagelist.cpp b/tools/chatgui/src/messagelist.cpp index a6a96b3f..381c5455 100644 --- a/tools/chatgui/src/messagelist.cpp +++ b/tools/chatgui/src/messagelist.cpp @@ -1126,6 +1126,9 @@ void MessageList::jumpToMessage(const QString& messageId) { m_historyAnchor = key; loadChannel(m_currentChannelId); } + // Даже уже загруженный оригинал не должен вытесняться новыми сообщениями во время просмотра. + m_historyAnchor = key; + m_view->setHistoricalWindow(true); GUI_DEBUG("reply: navigate ch=%s id=%s loaded_window=%d", qPrintable(m_currentChannelId), qPrintable(messageId), !present); const QString channel = m_currentChannelId; QTimer::singleShot(0, this, [this, channel, messageId]() {