Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add upload check to queueFiles before starting streaming

Prateek Sunal19893f582fc6
diff --git a/mobile/apps/photos/lib/services/video_preview_service.dart b/mobile/apps/photos/lib/services/video_preview_service.dart
index 8b49d2cae3..f754582df3 100644
--- a/mobile/apps/photos/lib/services/video_preview_service.dart
+++ b/mobile/apps/photos/lib/services/video_preview_service.dart
@@ -1251,6 +1251,12 @@ class VideoPreviewService {
Future.delayed(duration, () async {
if (_hasQueuedFile && !forceProcess) return;
+ // Don't start streaming if file uploads are in progress
+ if (FileUploader.instance.isUploading) {
+ _logger.info("Skipping stream queue - file upload in progress");
+ return;
+ }
+
final isStreamAllowed = isManual ? _allowManualStream() : _allowStream();
if (!isStreamAllowed) return;