2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Improved applying edition.

- Fixed cancel single media.
This commit is contained in:
23rd
2019-03-31 23:45:55 +03:00
committed by John Preston
parent 0e7ce97da7
commit f3102573ea
5 changed files with 15 additions and 11 deletions

View File

@@ -843,8 +843,10 @@ void MainWidget::cancelUploadLayer(not_null<HistoryItem*> item) {
if (const auto item = App::histItemById(itemId)) {
const auto history = item->history();
if (!item->isEditingMedia()) {
item->destroy();
history->requestChatListMessage();
if (!IsServerMsgId(itemId.msg)) {
item->destroy();
history->requestChatListMessage();
}
} else {
item->returnSavedMedia();
session().uploader().cancel(item->fullId());