mirror of
https://github.com/immich-app/immich.git
synced 2025-11-25 07:45:17 -05:00
fix(mobile): delete from device warning shows incorrectly (#23935)
fix(mobile): delete warning on multiple assets
This commit is contained in:
parent
af22f9b014
commit
eeee5147cc
@ -264,9 +264,8 @@ class ActionNotifier extends Notifier<void> {
|
||||
}
|
||||
|
||||
Future<ActionResult?> deleteLocal(ActionSource source, BuildContext context) async {
|
||||
// Always perform the operation if there is only one merged asset
|
||||
final assets = _getAssets(source);
|
||||
bool? backedUpOnly = assets.length == 1 && assets.first.storage == AssetState.merged
|
||||
bool? backedUpOnly = assets.every((asset) => asset.storage == AssetState.merged)
|
||||
? true
|
||||
: await showDialog<bool>(
|
||||
context: context,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user