π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Delete invalid download chunks
Neeraj Guptaa14fb7e08e27
diff --git a/mobile/apps/photos/lib/module/download/manager.dart b/mobile/apps/photos/lib/module/download/manager.dartindex b92cf6fbd8..9873dc9754 100644--- a/mobile/apps/photos/lib/module/download/manager.dart+++ b/mobile/apps/photos/lib/module/download/manager.dart@@ -286,7 +286,11 @@ class DownloadManager {'but got $actualSize bytes',);existingChunks[i] = false;- // await chunkFile.delete(); // Remove corrupted chunk+ try {+ await chunkFile.delete();+ } catch (e) {+ _logger.warning('Failed to delete corrupted chunk ${i + 1}', e);+ }}}