π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Ignore files that are already marked for reupload
Neeraj Gupta844fa75bcd79
diff --git a/lib/services/local_file_update_service.dart b/lib/services/local_file_update_service.dartindex 2b2a40f76f..22782589e0 100644--- a/lib/services/local_file_update_service.dart+++ b/lib/services/local_file_update_service.dart@@ -218,7 +218,7 @@ class LocalFileUpdateService {// singleRunLimit indicates number of files to check during single// invocation of this method. The limit act as a crude way to limit the// resource consumed by the method- const int singleRunLimit = 50;+ const int singleRunLimit = 75;final localIDsToProcess =await _fileUpdationDB.getLocalIDsForPotentialReUpload(singleRunLimit,@@ -251,6 +251,7 @@ class LocalFileUpdateService {final List<EnteFile> localFilesForUser = [];final Set<String> localIDsWithFile = {};final Set<int> missingSizeIDs = {};+ final Set<String> processedIDs = {};for (EnteFile file in result) {if (file.ownerID == null || file.ownerID == userID) {localFilesForUser.add(file);@@ -258,6 +259,10 @@ class LocalFileUpdateService {if (file.isUploaded && file.fileSize == null) {missingSizeIDs.add(file.uploadedFileID!);}+ if (file.isUploaded && file.updationTime == null) {+ // file already queued for re-upload+ processedIDs.add(file.localID!);+ }}}if (missingSizeIDs.isNotEmpty) {@@ -267,7 +272,6 @@ class LocalFileUpdateService {return;}- final Set<String> processedIDs = {};// if a file for localID doesn't exist, then mark it as processed// otherwise the app will be stuck in retrying same set of ids