diff --git a/mobile/lib/services/backup.service.dart b/mobile/lib/services/backup.service.dart index a0b6bf16c2..7bce1047e2 100644 --- a/mobile/lib/services/backup.service.dart +++ b/mobile/lib/services/backup.service.dart @@ -313,15 +313,12 @@ class BackupService { ); } } else { - if (asset.type == AssetType.video) { - file = await asset.local!.originFile; - } else { - file = await asset.local!.originFile + file = + await asset.local!.originFile.timeout(const Duration(seconds: 5)); + + if (asset.local!.isLivePhoto) { + livePhotoFile = await asset.local!.originFileWithSubtype .timeout(const Duration(seconds: 5)); - if (asset.local!.isLivePhoto) { - livePhotoFile = await asset.local!.originFileWithSubtype - .timeout(const Duration(seconds: 5)); - } } }