Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: only show when video streaming is enabled

Prateek Sunal7f43c11985d9
diff --git a/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
index 3701424e27..1cbb935ab4 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
@@ -499,7 +499,8 @@ class FileAppBarState extends State<FileAppBar> {
widget.file.isUploaded &&
widget.file.fileSize != null &&
(widget.file.pubMagicMetadata?.sv ?? 0) != 1 &&
- widget.file.ownerID == userId;
+ widget.file.ownerID == userId &&
+ VideoPreviewService.instance.isVideoStreamingEnabled;
}
Future<void> _handleVideoStream(String streamType) async {