mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Create ImagePtr-s using a factory method.
This commit is contained in:
@@ -120,7 +120,7 @@ ImagePtr PhotoData::makeReplyPreview(Data::FileOrigin origin) {
|
||||
int w = image->width(), h = image->height();
|
||||
if (w <= 0) w = 1;
|
||||
if (h <= 0) h = 1;
|
||||
return ImagePtr(
|
||||
return Images::Create(
|
||||
(w > h
|
||||
? image->pix(
|
||||
origin,
|
||||
|
Reference in New Issue
Block a user