mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +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
|
|
@ -48,10 +48,8 @@ class MapSerivce {
|
|||
if (assets.isNotEmpty) return assets[0];
|
||||
|
||||
final dto = await _apiService.assetApi.getAssetById(remoteId);
|
||||
if (dto == null) {
|
||||
return null;
|
||||
}
|
||||
return Asset.remote(dto);
|
||||
if (dto == null) return null;
|
||||
return _db.assets.getByRemoteId(dto.id);
|
||||
} catch (error, stack) {
|
||||
_log.severe(
|
||||
"Cannot get asset for marker ${error.toString()}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue