mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
Forbid deleting General topic.
This commit is contained in:
parent
77b2572854
commit
985f557adf
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue