mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Attempt to fix sending messages to broken topics.
This commit is contained in:
@@ -3543,7 +3543,8 @@ void HistoryItem::createComponentsHelper(HistoryItemCommonFields &&fields) {
|
|||||||
const auto topicPost = config.reply.externalPeerId
|
const auto topicPost = config.reply.externalPeerId
|
||||||
? (replyTo.topicRootId
|
? (replyTo.topicRootId
|
||||||
&& (replyTo.topicRootId != Data::ForumTopic::kGeneralId))
|
&& (replyTo.topicRootId != Data::ForumTopic::kGeneralId))
|
||||||
: (LookupReplyIsTopicPost(to)
|
: (topic
|
||||||
|
|| LookupReplyIsTopicPost(to)
|
||||||
|| (to && to->Has<HistoryServiceTopicInfo>())
|
|| (to && to->Has<HistoryServiceTopicInfo>())
|
||||||
|| (forum && forum->creating(config.reply.topMessageId)));
|
|| (forum && forum->creating(config.reply.topMessageId)));
|
||||||
config.reply.topicPost = topicPost ? 1 : 0;
|
config.reply.topicPost = topicPost ? 1 : 0;
|
||||||
|
Reference in New Issue
Block a user