1
0
mirror of https://github.com/immich-app/immich.git synced 2025-01-12 15:32:36 +02:00

fix(mobile): Fix single element archiving (#6668)

This commit is contained in:
Emanuel Bennici 2024-01-27 19:57:51 +01:00 committed by GitHub
parent 25cad79657
commit 9422359b51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -301,7 +301,7 @@ class AssetNotifier extends StateNotifier<bool> {
}
Future<void> toggleArchive(List<Asset> assets, [bool? status]) async {
status ??= assets.every((a) => a.isArchived);
status ??= !assets.every((a) => a.isArchived);
final newAssets = await _assetService.changeArchiveStatus(assets, status);
int i = 0;
for (Asset oldAsset in assets) {