fix(mobile): share to error (#13044)

This commit is contained in:
Alex
2024-09-30 20:51:47 +07:00
committed by GitHub
parent 5bcbe77fb6
commit 95c67949f7
2 changed files with 1 additions and 18 deletions

View File

@@ -70,19 +70,6 @@ extension AssetListExtension on Iterable<Asset> {
}
return this;
}
/// Filters out offline assets and returns those that are still accessible by the Immich server
/// TODO: isOffline is removed from Immich, so this method is not useful anymore
Iterable<Asset> nonOfflineOnly({
void Function()? errorCallback,
}) {
final bool onlyLive = every((e) => false);
if (!onlyLive) {
if (errorCallback != null) errorCallback();
return where((a) => false);
}
return this;
}
}
extension SortedByProperty<T> on Iterable<T> {