fix(mobile): streamline error handling for live photo saving (#27337)

This commit is contained in:
Luis Nachtigall
2026-03-28 01:07:38 +01:00
committed by GitHub
parent 5889c42eb6
commit a277c6311f
+1 -1
View File
@@ -109,7 +109,7 @@ class DownloadService {
return result != null;
} on PlatformException catch (error, stack) {
// Handle saving MotionPhotos on iOS
if (error.code == 'PHPhotosErrorDomain (-1)') {
if (error.code.startsWith('PHPhotosErrorDomain')) {
final result = await _fileMediaRepository.saveImageWithFile(imageFilePath, title: task.filename);
return result != null;
}