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

Remove Image::toDelayedStorageImage downcaster.

This commit is contained in:
John Preston
2018-10-11 19:07:08 +03:00
parent 113f665295
commit 5a50248055
5 changed files with 23 additions and 30 deletions

View File

@@ -129,9 +129,9 @@ ImagePtr PhotoData::makeReplyPreview(Data::FileOrigin origin) {
: image->pix(origin, st::msgReplyBarSize.height())),
"PNG");
};
if (thumb->toDelayedStorageImage()
if (thumb->isDelayedStorageImage()
&& !full->isNull()
&& !full->toDelayedStorageImage()) {
&& !full->isDelayedStorageImage()) {
replyPreview = previewFromImage(full);
} else {
replyPreview = previewFromImage(thumb);