Forráskód Böngészése

Fixed issue with filename is blank on iOS causing update to fail

Alex 3 éve
szülő
commit
25338ce02f

+ 1 - 2
mobile/lib/modules/backup/services/backup.service.dart

@@ -196,8 +196,7 @@ class BackupService {
         }
 
         if (file != null) {
-          String originalFileName =
-              entity.title != null ? entity.title! : await entity.titleAsync;
+          String originalFileName = await entity.titleAsync;
           String fileNameWithoutPath =
               originalFileName.toString().split(".")[0];
           var fileExtension = p.extension(file.path);

+ 1 - 1
mobile/lib/modules/backup/ui/album_info_card.dart

@@ -123,7 +123,7 @@ class AlbumInfoCard extends HookConsumerWidget {
             return;
           }
 
-          if (albumInfo.id == 'isAll') {
+          if (albumInfo.id == 'isAll' || albumInfo.name == 'Recents') {
             ImmichToast.show(
               context: context,
               msg: 'Cannot exclude album contains all assets',