Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: only upload preview if video streaming enabled

Prateek Sunal0a3e1087ef17
diff --git a/mobile/lib/utils/file_uploader.dart b/mobile/lib/utils/file_uploader.dart
index 3230c55acf..4cc5bb0574 100644
--- a/mobile/lib/utils/file_uploader.dart
+++ b/mobile/lib/utils/file_uploader.dart
@@ -475,7 +475,7 @@ class FileUploader {
void _uploadPreview(EnteFile file) {
final collection =
CollectionsService.instance.getCollectionByID(file.collectionID!);
- if (collection?.displayName == "Camera") {
+ if (Platform.isIOS || collection?.displayName == "Camera") {
unawaited(
_previewVideoStore.chunkAndUploadVideo(null, file),
);
@@ -749,7 +749,9 @@ class FileUploader {
throw SyncStopRequestedError();
}
- _uploadPreview(file);
+ if (PreviewVideoStore.instance.isVideoStreamingEnabled) {
+ _uploadPreview(file);
+ }
EnteFile remoteFile;
if (isUpdatedFile) {
remoteFile = await _updateFile(