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

@@ -130,6 +130,13 @@ public:
_isEditingMedia = edit;
}
bool isLocalUpdateMedia() const {
return _isLocalUpdateMedia;
}
void setIsLocalUpdateMedia(bool flag) {
_isLocalUpdateMedia = flag;
}
// For edit media in history_message.
virtual void returnSavedMedia() {};
void clearSavedMedia() {
@@ -326,6 +333,7 @@ protected:
int _textHeight = 0;
bool _isEditingMedia = false;
bool _isLocalUpdateMedia = false;
std::unique_ptr<Data::Media> _savedMedia;
std::unique_ptr<Data::Media> _media;