mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-29 13:39:06 +00:00
Fix crash in paid media preview.
This commit is contained in:
parent
56959398e2
commit
f6c071bd18
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user