Forbid deleting the topic root.

This commit is contained in:
John Preston 2022-11-01 11:28:57 +04:00
parent d5ea0149e8
commit dd3c8430bf
1 changed files with 2 additions and 0 deletions

View File

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