mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +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,
|
types,
|
||||||
item->id));
|
item->id));
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
session().api().cancelLocalItem(item);
|
|
||||||
}
|
}
|
||||||
itemRemoved(item);
|
itemRemoved(item);
|
||||||
}
|
}
|
||||||
|
if (item->isSending()) {
|
||||||
|
session().api().cancelLocalItem(item);
|
||||||
|
}
|
||||||
|
|
||||||
owner().unregisterMessage(item);
|
owner().unregisterMessage(item);
|
||||||
Core::App().notifications().clearFromItem(item);
|
Core::App().notifications().clearFromItem(item);
|
||||||
|
|
|
@ -69,7 +69,7 @@ constexpr auto kExportLocalTimeout = crl::time(1000);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
MsgId ItemIdAcrossData(not_null<HistoryItem*> item) {
|
MsgId ItemIdAcrossData(not_null<HistoryItem*> item) {
|
||||||
if (!item->isScheduled()) {
|
if (!item->isScheduled() || item->isSending() || item->hasFailed()) {
|
||||||
return item->id;
|
return item->id;
|
||||||
}
|
}
|
||||||
const auto session = &item->history()->session();
|
const auto session = &item->history()->session();
|
||||||
|
|
Loading…
Add table
Reference in a new issue