Forbid deleting General topic.

This commit is contained in:
John Preston 2022-12-07 13:36:42 +04:00
parent 77b2572854
commit 985f557adf

View File

@ -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;