mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 09:15:05 +03:00
chore: bump dart sdk to 3.8 (#20355)
* chore: bump dart sdk to 3.8 * chore: make build * make pigeon * chore: format files --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
@@ -68,9 +68,7 @@ class AssetNotifier extends StateNotifier<bool> {
|
||||
}
|
||||
final bool newRemote = await _assetService.refreshRemoteAssets();
|
||||
final bool newLocal = await _albumService.refreshDeviceAlbums();
|
||||
debugPrint(
|
||||
"changedUsers: $changedUsers, newRemote: $newRemote, newLocal: $newLocal",
|
||||
);
|
||||
debugPrint("changedUsers: $changedUsers, newRemote: $newRemote, newLocal: $newLocal");
|
||||
if (newRemote) {
|
||||
_ref.invalidate(memoryFutureProvider);
|
||||
}
|
||||
@@ -122,17 +120,11 @@ class AssetNotifier extends StateNotifier<bool> {
|
||||
/// Delete remote asset only
|
||||
///
|
||||
/// Default behavior is trashing the asset
|
||||
Future<bool> deleteRemoteAssets(
|
||||
Iterable<Asset> deleteAssets, {
|
||||
bool shouldDeletePermanently = false,
|
||||
}) async {
|
||||
Future<bool> deleteRemoteAssets(Iterable<Asset> deleteAssets, {bool shouldDeletePermanently = false}) async {
|
||||
_deleteInProgress = true;
|
||||
state = true;
|
||||
try {
|
||||
await _assetService.deleteRemoteAssets(
|
||||
deleteAssets,
|
||||
shouldDeletePermanently: shouldDeletePermanently,
|
||||
);
|
||||
await _assetService.deleteRemoteAssets(deleteAssets, shouldDeletePermanently: shouldDeletePermanently);
|
||||
return true;
|
||||
} catch (error) {
|
||||
log.severe("Failed to delete remote assets", error);
|
||||
@@ -143,17 +135,11 @@ class AssetNotifier extends StateNotifier<bool> {
|
||||
}
|
||||
}
|
||||
|
||||
Future<bool> deleteAssets(
|
||||
Iterable<Asset> deleteAssets, {
|
||||
bool force = false,
|
||||
}) async {
|
||||
Future<bool> deleteAssets(Iterable<Asset> deleteAssets, {bool force = false}) async {
|
||||
_deleteInProgress = true;
|
||||
state = true;
|
||||
try {
|
||||
await _assetService.deleteAssets(
|
||||
deleteAssets,
|
||||
shouldDeletePermanently: force,
|
||||
);
|
||||
await _assetService.deleteAssets(deleteAssets, shouldDeletePermanently: force);
|
||||
return true;
|
||||
} catch (error) {
|
||||
log.severe("Failed to delete assets", error);
|
||||
@@ -174,10 +160,7 @@ class AssetNotifier extends StateNotifier<bool> {
|
||||
return _assetService.changeArchiveStatus(assets, status);
|
||||
}
|
||||
|
||||
Future<void> setLockedView(
|
||||
List<Asset> selection,
|
||||
AssetVisibilityEnum visibility,
|
||||
) {
|
||||
Future<void> setLockedView(List<Asset> selection, AssetVisibilityEnum visibility) {
|
||||
return _assetService.setVisibility(selection, visibility);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user