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

Store replyPreview in unique_ptr<Image>.

This commit is contained in:
John Preston
2018-11-09 19:03:38 +04:00
parent 147079ce2a
commit 2b95b96fa3
8 changed files with 69 additions and 69 deletions

View File

@@ -126,7 +126,7 @@ public:
void performActionOnLoad();
void unload();
ImagePtr makeReplyPreview(Data::FileOrigin origin);
Image *getReplyPreview(Data::FileOrigin origin);
StickerData *sticker() const;
void checkSticker();
@@ -206,7 +206,7 @@ public:
DocumentType type = FileDocument;
QSize dimensions;
int32 date = 0;
ImagePtr thumb, replyPreview;
ImagePtr thumb;
int32 size = 0;
FileStatus status = FileReady;
@@ -231,6 +231,7 @@ private:
WebFileLocation _urlLocation;
std::unique_ptr<Image> _goodThumbnail;
std::unique_ptr<Image> _replyPreview;
not_null<AuthSession*> _session;