0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-21 00:52:43 -05:00
immich/mobile
Azsde 8a421eb778
fix (mobile): Fix slow album thumbnail generation for album picker (#3905)
* [BUGFIX] Fix slow album thumbnail generation

When generating the thumbnail of an album, all of the pictures of the
album are retrieved but only the first picture of the album is used.

Retrieving all of the pictures of the album at once can cause huge performance
issues on large albums.

Since only the first picture is used to generate the thumbnail, this commit
uses the getAssetListPaged method instead of getAssetListRange, effectively
retrieving only the first picture of the album.

* [DEVMINOR] Remove unecessary check

As we already check for the number of assets in the album, when
fetching assets using `album.getAssetListPaged` the returned result
won't be empty.

---------

Co-authored-by: Azsde <aelkaim@pixium-vision.com>
2023-09-13 22:32:06 +07:00
..
.fvm chore(mobile): Bump to Flutter 3.13 (#3767) 2023-08-18 17:52:40 -05:00
.isar@6643d064ab chore(mobile): update isar (#2571) 2023-05-26 08:09:44 -05:00
.vscode fix(mobile): Fix background backup on iOS (#4038) 2023-09-11 17:31:15 +07:00
android chore: post release 2023-09-13 17:27:31 +07:00
assets chore(mobile): update translation 2023-09-13 11:40:59 +07:00
fonts feat(mobile): memories (#2988) 2023-06-27 16:00:20 -05:00
integration_test
ios chore: post release 2023-09-13 17:27:31 +07:00
lib fix (mobile): Fix slow album thumbnail generation for album picker (#3905) 2023-09-13 22:32:06 +07:00
openapi Version v1.78.0 2023-09-13 08:24:02 +00:00
scripts
test feat(mobile): efficient asset sync (#3945) 2023-09-10 14:51:18 +02:00
.gitignore chore(mobile): update isar (#2571) 2023-05-26 08:09:44 -05:00
.metadata
analysis_options.yaml
flutter_01.png feat: Add description (#2237) 2023-04-13 10:22:06 -05:00
flutter_native_splash.yaml
makefile feat(web,server): user memory settings (#3628) 2023-08-09 21:01:16 -05:00
pubspec.lock feat(mobile): map view (#3661) 2023-08-27 05:07:35 +00:00
pubspec.yaml Version v1.78.0 2023-09-13 08:24:02 +00:00
README.md

Immich Mobile Application - Flutter