mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(mobile): load search result assets from local DB (#5971)
This commit is contained in:
parent
c0ebc943d2
commit
733fa28aa2
5 changed files with 22 additions and 29 deletions
|
|
@ -472,6 +472,8 @@ extension AssetsHelper on IsarCollection<Asset> {
|
|||
ids.isEmpty ? Future.value([]) : remote(ids).findAll();
|
||||
Future<List<Asset>> getAllByLocalId(Iterable<String> ids) =>
|
||||
ids.isEmpty ? Future.value([]) : local(ids).findAll();
|
||||
Future<Asset?> getByRemoteId(String id) =>
|
||||
where().remoteIdEqualTo(id).findFirst();
|
||||
|
||||
QueryBuilder<Asset, Asset, QAfterWhereClause> remote(Iterable<String> ids) =>
|
||||
where().anyOf(ids, (q, String e) => q.remoteIdEqualTo(e));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue