mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
parent
b788ae0ae4
commit
1cabfaa6a4
2 changed files with 4 additions and 3 deletions
|
@ -416,11 +416,12 @@ void History::destroyMessage(not_null<HistoryItem*> item) {
|
|||
types,
|
||||
item->id));
|
||||
}
|
||||
} else {
|
||||
session().api().cancelLocalItem(item);
|
||||
}
|
||||
itemRemoved(item);
|
||||
}
|
||||
if (item->isSending()) {
|
||||
session().api().cancelLocalItem(item);
|
||||
}
|
||||
|
||||
owner().unregisterMessage(item);
|
||||
Core::App().notifications().clearFromItem(item);
|
||||
|
|
|
@ -69,7 +69,7 @@ constexpr auto kExportLocalTimeout = crl::time(1000);
|
|||
//}
|
||||
|
||||
MsgId ItemIdAcrossData(not_null<HistoryItem*> item) {
|
||||
if (!item->isScheduled()) {
|
||||
if (!item->isScheduled() || item->isSending() || item->hasFailed()) {
|
||||
return item->id;
|
||||
}
|
||||
const auto session = &item->history()->session();
|
||||
|
|
Loading…
Add table
Reference in a new issue