Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Use remote file API for OCR fallback

laurenspriemedeafcc7458f
diff --git a/mobile/apps/photos/lib/ui/viewer/file/ocr/inline_text_detection.dart b/mobile/apps/photos/lib/ui/viewer/file/ocr/inline_text_detection.dart
index 0ae4d20a86..362231cc59 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/ocr/inline_text_detection.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/ocr/inline_text_detection.dart
@@ -387,7 +387,7 @@ class _InlineTextDetectionState extends State<InlineTextDetection> {
File? localFile = await getFile(file);
if (!mounted || generation != _evaluationGeneration) return null;
if (canUseUploadedCopy && (localFile == null || !localFile.existsSync())) {
- localFile = await getFile(EnteFile.from(file)..localID = null);
+ localFile = await getFileFromServer(file);
}
return localFile;
}