mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Forbid deleting the topic root.
This commit is contained in:
parent
d5ea0149e8
commit
dd3c8430bf
1 changed files with 2 additions and 0 deletions
|
@ -838,6 +838,8 @@ bool HistoryItem::canDelete() const {
|
|||
return false;
|
||||
} else if (isService() && !isRegular()) {
|
||||
return false;
|
||||
} else if (topicRootId() == id) {
|
||||
return false;
|
||||
} else if (!isHistoryEntry() && !isScheduled()) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue