2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Added initial local reference for edited media.

This commit is contained in:
23rd
2019-03-30 21:26:20 +03:00
committed by John Preston
parent 6e69069ba2
commit 145dda843e
3 changed files with 23 additions and 4 deletions

View File

@@ -4639,6 +4639,7 @@ void ApiWrap::editUploadedPhoto(
sentEntities
)).done([=](const MTPUpdates &result) {
item->clearSavedMedia();
item->setIsLocalUpdateMedia(true);
applyUpdates(result);
}).fail([=](const RPCError &error) {
QString err = error.type();
@@ -4702,6 +4703,7 @@ void ApiWrap::editUploadedDocument(
sentEntities
)).done([=](const MTPUpdates &result) {
item->clearSavedMedia();
item->setIsLocalUpdateMedia(true);
applyUpdates(result);
}).fail([=](const RPCError &error) {
QString err = error.type();