mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix crash in paid media preview.
This commit is contained in:
parent
56959398e2
commit
f6c071bd18
1 changed files with 2 additions and 1 deletions
|
@ -242,7 +242,8 @@ template <typename MediaType>
|
|||
ImageRoundRadius radius,
|
||||
bool 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));
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Add table
Reference in a new issue