mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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 {
|
bool ForumTopic::canDelete() const {
|
||||||
if (creating()) {
|
if (creating() || isGeneral()) {
|
||||||
return false;
|
return false;
|
||||||
} else if (channel()->canDeleteMessages()) {
|
} else if (channel()->canDeleteMessages()) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue