mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
fix: allow deleting deleted messages
This commit is contained in:
parent
36156997ee
commit
70c3bb3288
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue