From 5a47acf1d23fcf03c6dba460bcf8c65a29372b0c Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 19 Jan 2024 16:24:50 +0400 Subject: [PATCH] Change reply-in-chat locally. --- Telegram/SourceFiles/history/history_widget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp index f0d991b04..4255a7e10 100644 --- a/Telegram/SourceFiles/history/history_widget.cpp +++ b/Telegram/SourceFiles/history/history_widget.cpp @@ -1942,6 +1942,10 @@ bool HistoryWidget::applyDraft(FieldHistoryAction fieldHistoryAction) { } else if (!readyToForward()) { const auto draft = _history->localDraft({}); _processingReplyTo = draft ? draft->reply : FullReplyTo(); + if (_processingReplyTo) { + _processingReplyItem = session().data().message( + _processingReplyTo.messageId); + } processReply(); }