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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user