2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix cancel / crash in sending album to scheduled messages.

Fixes #8788
This commit is contained in:
John Preston
2020-10-22 16:08:01 +03:00
parent b788ae0ae4
commit 1cabfaa6a4
2 changed files with 4 additions and 3 deletions

View File

@@ -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);