2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Refactored variables for edit media in HistoryItem.

- Replaced _isLocalUpdateMedia with client flag.
 - Removed _isEditingMedia.
This commit is contained in:
23rd
2019-04-04 13:22:59 +03:00
parent a9fa49e372
commit a6d0fa433e
6 changed files with 20 additions and 27 deletions

View File

@@ -4676,6 +4676,7 @@ void ApiWrap::editUploadedFile(
item->clearSavedMedia();
item->setIsLocalUpdateMedia(true);
applyUpdates(result);
item->setIsLocalUpdateMedia(false);
}).fail([=](const RPCError &error) {
QString err = error.type();
if (err == qstr("MESSAGE_NOT_MODIFIED")) {