Browse Source

Keep the viewed reply target stable until returning to latest messages

master
evgeny 4 days ago
parent
commit
4463f8870a
  1. 3
      tools/chatgui/src/messagelist.cpp

3
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]() {

Loading…
Cancel
Save