From 985f557adfe042aa0b141e2480333326a0878a21 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 7 Dec 2022 13:36:42 +0400 Subject: [PATCH] Forbid deleting General topic. --- Telegram/SourceFiles/data/data_forum_topic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/data/data_forum_topic.cpp b/Telegram/SourceFiles/data/data_forum_topic.cpp index 9e56bca29..c7e88411b 100644 --- a/Telegram/SourceFiles/data/data_forum_topic.cpp +++ b/Telegram/SourceFiles/data/data_forum_topic.cpp @@ -266,7 +266,7 @@ bool ForumTopic::canEdit() const { } bool ForumTopic::canDelete() const { - if (creating()) { + if (creating() || isGeneral()) { return false; } else if (channel()->canDeleteMessages()) { return true;