From f10f3c08dedea7f42fe2dbd89bcb241497daf733 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 15 May 2024 18:55:56 +0400 Subject: [PATCH] Attempt to fix sending messages to broken topics. --- Telegram/SourceFiles/history/history_item.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 2c20bcec0..cdc57d00d 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -3543,7 +3543,8 @@ void HistoryItem::createComponentsHelper(HistoryItemCommonFields &&fields) { const auto topicPost = config.reply.externalPeerId ? (replyTo.topicRootId && (replyTo.topicRootId != Data::ForumTopic::kGeneralId)) - : (LookupReplyIsTopicPost(to) + : (topic + || LookupReplyIsTopicPost(to) || (to && to->Has()) || (forum && forum->creating(config.reply.topMessageId))); config.reply.topicPost = topicPost ? 1 : 0;