mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Fix crash in paid media preview.
This commit is contained in:
@@ -242,7 +242,8 @@ template <typename MediaType>
|
|||||||
ImageRoundRadius radius,
|
ImageRoundRadius radius,
|
||||||
bool spoiler) {
|
bool spoiler) {
|
||||||
auto result = PreparePhotoPreviewImage(item, media, radius, spoiler);
|
auto result = PreparePhotoPreviewImage(item, media, radius, spoiler);
|
||||||
if (media->owner()->extendedMediaVideoDuration().has_value()) {
|
if (!result.data.isNull()
|
||||||
|
&& media->owner()->extendedMediaVideoDuration().has_value()) {
|
||||||
result.data = PutPlayIcon(std::move(result.data));
|
result.data = PutPlayIcon(std::move(result.data));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
Reference in New Issue
Block a user