From d12e8023e359f0058f38131a38347b9b3eb7a7b2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 23 Dec 2024 13:10:16 +0400 Subject: [PATCH] Fix scheduled replies loading. --- Telegram/SourceFiles/history/history_item.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 7dceb86186..a8b2a20dd7 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -952,10 +952,16 @@ void HistoryItem::resolveDependent(not_null reply) { if (!reply->acquireResolve()) { return; } else if (const auto messageId = reply->messageId()) { + if (Data::IsScheduledMsgId(messageId)) { + reply->updateData(this); + if (!reply->acquireResolve()) { + return; + } + } RequestDependentMessageItem( this, reply->externalPeerId(), - reply->messageId()); + messageId); } else if (reply->storyId()) { RequestDependentMessageStory( this,