mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
fix(mobile): Fix single element archiving (#6668)
This commit is contained in:
parent
25cad79657
commit
9422359b51
1 changed files with 1 additions and 1 deletions
|
@ -301,7 +301,7 @@ class AssetNotifier extends StateNotifier<bool> {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> toggleArchive(List<Asset> assets, [bool? status]) async {
|
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);
|
final newAssets = await _assetService.changeArchiveStatus(assets, status);
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (Asset oldAsset in assets) {
|
for (Asset oldAsset in assets) {
|
||||||
|
|
Loading…
Reference in a new issue