Keep the viewed reply target stable until returning to latest messages

This commit is contained in:
evgeny committed 2026-10-08 00:50:17 +02:00
1 parent fde359b4af
commit 4463f8870a
1 file changed
+3
+3
View File
@@ -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]() {