2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fixed item updating when upload editing media.

This commit is contained in:
23rd
2019-03-26 18:56:33 +03:00
committed by John Preston
parent 1ed83cf193
commit f24ce584db
3 changed files with 13 additions and 1 deletions

View File

@@ -4290,6 +4290,11 @@ void HistoryWidget::sendFileConfirmed(
const auto messageType = isEditing
? NewMessageExisting
: NewMessageUnread;
if (isEditing) {
if (const auto itemToEdit = App::histItemById(newId)) {
itemToEdit->setIsEditingMedia(true);
}
}
if (file->type == SendMediaType::Photo) {
auto photoFlags = MTPDmessageMediaPhoto::Flag::f_photo | 0;
auto photo = MTP_messageMediaPhoto(