π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update clearQueue to use flag-based status
Prateek Sunal7f7c1330038b
diff --git a/mobile/apps/photos/lib/services/video_preview_service.dart b/mobile/apps/photos/lib/services/video_preview_service.dartindex b226433f95..60aa9ce571 100644--- a/mobile/apps/photos/lib/services/video_preview_service.dart+++ b/mobile/apps/photos/lib/services/video_preview_service.dart@@ -123,9 +123,13 @@ class VideoPreviewService {}void clearQueue() {- // Fire paused events for all items being cleared so UI can reset+ // Fire events for all items being cleared so UI can reset+ // Use paused status when flag is enabled (items will resume), otherwise uploaded+ final status = flagService.pauseStreamDuringUpload+ ? PreviewItemStatus.paused+ : PreviewItemStatus.uploaded;for (final fileId in _items.keys) {- _fireVideoPreviewStateChange(fileId, PreviewItemStatus.paused);+ _fireVideoPreviewStateChange(fileId, status);}fileQueue.clear();_items.clear();