π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: logic for queuing and item removal
Prateek Sunalce5a8f04575c
diff --git a/mobile/lib/services/preview_video_store.dart b/mobile/lib/services/preview_video_store.dartindex bbbb39ed42..e175635676 100644--- a/mobile/lib/services/preview_video_store.dart+++ b/mobile/lib/services/preview_video_store.dart@@ -596,8 +596,10 @@ class PreviewVideoStore {final codecIsH264 = codec?.contains("h264") ?? false;if (codecIsH264) {- _items.removeWhere((key, value) => value.file == enteFile);- Bus.instance.fire(PreviewUpdatedEvent(_items));+ if (_items.containsKey(enteFile.uploadedFileID!)) {+ _items.remove(enteFile.uploadedFileID!);+ Bus.instance.fire(PreviewUpdatedEvent(_items));+ }return (props, true);}}@@ -634,6 +636,7 @@ class PreviewVideoStore {final (_, result) = await checkFileForPreviewCreation(enteFile);if (result) {+ allFiles.remove(enteFile);continue;}