Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): cache related crash (#593)

Matthias Rupp4c977d2c1ff2
diff --git a/mobile/lib/utils/immich_cache_info_repository.dart b/mobile/lib/utils/immich_cache_info_repository.dart
index d3a20134d6..3b0240247a 100644
--- a/mobile/lib/utils/immich_cache_info_repository.dart
+++ b/mobile/lib/utils/immich_cache_info_repository.dart
@@ -97,7 +97,7 @@ class ImmichCacheInfoRepository extends ImmichCacheRepository {
return aTouched.compareTo(bTouched);
});
- return values.skip(capacity).toList();
+ return values.skip(capacity).take(10).toList();
}
@override