Fix scheduled replies loading.

This commit is contained in:
John Preston 2024-12-23 13:10:16 +04:00
parent 17181cee8f
commit d12e8023e3

View file

@ -952,10 +952,16 @@ void HistoryItem::resolveDependent(not_null<HistoryMessageReply*> 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,