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()) {
return false;
}
if (isDeleted()) {
return true;
}
auto channel = _history->peer->asChannel();
if (!channel) {
return !isGroupMigrate();