1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-16 07:24:40 +02:00

feat(mobile): Revert render assets on device by default (#10470) (#10774)

Revert "feat(mobile): render assets on device by default (#10470)"

This reverts commit 32da9d90e4.
This commit is contained in:
Alex
2024-07-02 14:01:54 -05:00
committed by GitHub
parent f23401d911
commit 1ee10ee2d6
3 changed files with 97 additions and 14 deletions

View File

@ -24,9 +24,13 @@ class HashService {
AssetPathEntity album, {
int start = 0,
int end = 0x7fffffffffffffff,
Set<String>? excludedAssets,
}) async {
final entities = await album.getAssetListRange(start: start, end: end);
return _hashAssets(entities);
final filtered = excludedAssets == null
? entities
: entities.where((e) => !excludedAssets.contains(e.id)).toList();
return _hashAssets(filtered);
}
/// Converts a list of [AssetEntity]s to [Asset]s including only those