mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
@@ -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();
|
||||
|
Reference in New Issue
Block a user