Forbid deleting the topic root.
This commit is contained in:
parent
d5ea0149e8
commit
dd3c8430bf
|
@ -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…
Reference in New Issue