fix: allow deleting deleted messages

This commit is contained in:
AlexeyZavar 2025-05-05 19:06:58 +03:00
parent 36156997ee
commit 70c3bb3288

View file

@ -2529,6 +2529,11 @@ bool HistoryItem::canDelete() const {
&& !isBusinessShortcut()) { && !isBusinessShortcut()) {
return false; return false;
} }
if (isDeleted()) {
return true;
}
auto channel = _history->peer->asChannel(); auto channel = _history->peer->asChannel();
if (!channel) { if (!channel) {
return !isGroupMigrate(); return !isGroupMigrate();