High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): Issue Selecting Many Albuns for Backup (#12784)
Shubhamaf7011164589
diff --git a/mobile/lib/providers/backup/backup.provider.dart b/mobile/lib/providers/backup/backup.provider.dartindex 9329f9b1f7..0885f35f77 100644--- a/mobile/lib/providers/backup/backup.provider.dart+++ b/mobile/lib/providers/backup/backup.provider.dart@@ -313,6 +313,9 @@ class BackupNotifier extends StateNotifier<BackUpState> {/// Those assets are unique and are used as the total assets///Future<void> _updateBackupAssetCount() async {+ // Save to persistent storage+ await _updatePersistentAlbumsSelection();+final duplicatedAssetIds = await _backupService.getDuplicatedAssetIds();final Set<BackupCandidate> assetsFromSelectedAlbums = {};final Set<BackupCandidate> assetsFromExcludedAlbums = {};@@ -408,9 +411,6 @@ class BackupNotifier extends StateNotifier<BackUpState> {selectedAlbumsBackupAssetsIds: selectedAlbumsBackupAssets,);}-- // Save to persistent storage- await _updatePersistentAlbumsSelection();}/// Get all necessary information for calculating the available albums,