From 70c3bb3288b15032ad103a7fc29131e525e51efb Mon Sep 17 00:00:00 2001 From: AlexeyZavar Date: Mon, 5 May 2025 19:06:58 +0300 Subject: [PATCH] fix: allow deleting deleted messages --- Telegram/SourceFiles/history/history_item.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index a3863ac654..ac2826e951 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -2529,6 +2529,11 @@ bool HistoryItem::canDelete() const { && !isBusinessShortcut()) { return false; } + + if (isDeleted()) { + return true; + } + auto channel = _history->peer->asChannel(); if (!channel) { return !isGroupMigrate();