From a277c6311f638de27857a60ec6b20d1d8d9002e7 Mon Sep 17 00:00:00 2001 From: Luis Nachtigall <31982496+LeLunZ@users.noreply.github.com> Date: Sat, 28 Mar 2026 01:07:38 +0100 Subject: [PATCH] fix(mobile): streamline error handling for live photo saving (#27337) --- mobile/lib/services/download.service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/lib/services/download.service.dart b/mobile/lib/services/download.service.dart index 7d2cf01b7c..8e810ced2a 100644 --- a/mobile/lib/services/download.service.dart +++ b/mobile/lib/services/download.service.dart @@ -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; }