Display thumbnails for video attachments

This commit is contained in:
Fedor Indutny 2021-09-24 13:47:47 -07:00 committed by GitHub
parent 47634acc3d
commit a6e3d5cbae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -267,7 +267,6 @@
src="libtextsecure/protocol_wrapper.js"
></script>
<script type="text/javascript" src="js/notifications.js"></script>
<script type="text/javascript" src="js/libphonenumber-util.js"></script>
<script type="text/javascript" src="js/expiring_messages.js"></script>
<script

View File

@ -71,7 +71,7 @@ export const AttachmentList = ({
attachments.length > 1 ? onClickAttachment : undefined;
const imageUrl =
isVideo && !attachment.screenshot ? BLANK_VIDEO_THUMBNAIL : url;
url || (isVideo ? BLANK_VIDEO_THUMBNAIL : undefined);
return (
<Image