π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Rename
Neeraj Gupta102b6bb30838
diff --git a/mobile/apps/photos/lib/core/errors.dart b/mobile/apps/photos/lib/core/errors.dartindex 800b0f3ac6..65654b4df5 100644--- a/mobile/apps/photos/lib/core/errors.dart+++ b/mobile/apps/photos/lib/core/errors.dart@@ -84,12 +84,12 @@ class PassKeySessionNotVerifiedError extends Error {}class PassKeySessionExpiredError extends Error {}-class MultiPartMissingFileError implements Exception {+class MultiPartFileMissingError implements Exception {final String message;- MultiPartMissingFileError(this.message);+ MultiPartFileMissingError(this.message);@override- String toString() => "MultiPartMissingFileError: $message";+ String toString() => "MultiPartFileMissingError: $message";}class MultiPartError implements Exception {diff --git a/mobile/apps/photos/lib/utils/file_uploader.dart b/mobile/apps/photos/lib/utils/file_uploader.dartindex 90553c0fd0..01eb6fc859 100644--- a/mobile/apps/photos/lib/utils/file_uploader.dart+++ b/mobile/apps/photos/lib/utils/file_uploader.dart@@ -619,7 +619,7 @@ class FileUploader {// that we'll have to re-upload as the nonce is lostif (hasExistingMultiPart) {if (!encryptedFileExists) {- throw MultiPartMissingFileError(+ throw MultiPartFileMissingError('multiPartResume: encryptedFile missing',);}@@ -902,7 +902,7 @@ class FileUploader {}bool isPutOrMultiPartError(Object e) {- if (e is MultiPartMissingFileError || e is MultiPartError) {+ if (e is MultiPartFileMissingError || e is MultiPartError) {return true;}if (e is DioException) {