Show icon for motion photo

This commit is contained in:
Neeraj Gupta 2023-05-03 13:03:45 +05:30
parent 7a19ce9c1b
commit 1af15c6ff1
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -111,8 +111,9 @@ class _ThumbnailWidgetState extends State<ThumbnailWidget> {
}
if (widget.file!.fileType == FileType.video) {
contentChildren.add(const VideoOverlayIcon());
} else if (widget.file!.fileType == FileType.livePhoto &&
widget.shouldShowLivePhotoOverlay) {
} else if (widget.shouldShowLivePhotoOverlay &&
(widget.file!.fileType == FileType.livePhoto ||
((widget.file!.pubMagicMetadata?.mvi ?? 0) > 0))) {
contentChildren.add(const LivePhotoOverlayIcon());
}
if (widget.shouldShowOwnerAvatar) {