diff --git a/mobile/lib/shared/providers/asset.provider.dart b/mobile/lib/shared/providers/asset.provider.dart index f874a6d5ad..ad163d5cd3 100644 --- a/mobile/lib/shared/providers/asset.provider.dart +++ b/mobile/lib/shared/providers/asset.provider.dart @@ -301,7 +301,7 @@ class AssetNotifier extends StateNotifier { } Future toggleArchive(List 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) {