2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Show local sending messages in replies section.

This commit is contained in:
John Preston
2020-09-04 20:11:36 +04:00
parent beb623bee2
commit 78d83a2c69
11 changed files with 207 additions and 27 deletions

View File

@@ -709,8 +709,9 @@ void MainWidget::cancelUploadLayer(not_null<HistoryItem*> item) {
auto &data = session().data();
if (const auto item = data.message(itemId)) {
if (!item->isEditingMedia()) {
const auto history = item->history();
item->destroy();
item->history()->requestChatListMessage();
history->requestChatListMessage();
} else {
item->returnSavedMedia();
session().uploader().cancel(item->fullId());