π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Recover face crops when local photo sources are unavailable
laurenspriem3aef1dfc2251
diff --git a/mobile/apps/photos/lib/utils/face/face_thumbnail_cache.dart b/mobile/apps/photos/lib/utils/face/face_thumbnail_cache.dartindex 010a666add..0c1df56277 100644--- a/mobile/apps/photos/lib/utils/face/face_thumbnail_cache.dart+++ b/mobile/apps/photos/lib/utils/face/face_thumbnail_cache.dart@@ -387,14 +387,22 @@ Future<Map<String, Uint8List>?> _getFaceCrops(}) async {late String? imagePath;if (useFullFile && file.fileType != FileType.video) {- final File? ioFile = await getFile(file);+ File? ioFile = await getFile(file);+ if (ioFile == null && file.isUploaded && !file.isRemoteOnlyFile) {+ ioFile = await getFile(EnteFile.from(file)..localID = null);+ }if (ioFile == null) {_logger.severe("Failed to get file for face crop generation");return null;}imagePath = ioFile.path;} else {- final thumbnail = await getThumbnailForUploadedFile(file);+ var thumbnail = await getThumbnailForUploadedFile(file);+ if (thumbnail == null && file.isUploaded && !file.isRemoteOnlyFile) {+ thumbnail = await getThumbnailForUploadedFile(+ EnteFile.from(file)..localID = null,+ );+ }if (thumbnail == null) {_logger.severe("Failed to get thumbnail for face crop generation");return null;