From d156de05a54190b6ca20c4db41f3576eadd4cd53 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 3 Jun 2025 14:31:23 +0400 Subject: [PATCH] Allow replying in monoforum while not in it. --- Telegram/SourceFiles/history/history.cpp | 5 +---- Telegram/SourceFiles/history/history_inner_widget.cpp | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Telegram/SourceFiles/history/history.cpp b/Telegram/SourceFiles/history/history.cpp index b419b414b4..77000409e0 100644 --- a/Telegram/SourceFiles/history/history.cpp +++ b/Telegram/SourceFiles/history/history.cpp @@ -2896,10 +2896,7 @@ bool History::shouldBeInChatList() const { } else if (isPinnedDialog(FilterId())) { return true; } else if (const auto channel = peer->asChannel()) { - if (channel->isMonoforum()) { - return !lastMessageKnown() - || (lastMessage() != nullptr); - } else if (!channel->amIn()) { + if (!channel->amIn()) { return isTopPromoted(); } } else if (const auto chat = peer->asChat()) { diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index 89743aa851..ede9c81b08 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -4970,9 +4970,7 @@ bool CanSendReply(not_null item) { return false; } else if (const auto channel = peer->asChannel()) { if (const auto sublist = item->savedSublist()) { - if (sublist->sublistPeer() == peer) { - return false; - } + return (sublist->sublistPeer() != peer); } return channel->amIn(); }