1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-19 00:32:49 +02:00
immich/mobile/lib/modules
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
..
album chore(mobile): Bump to Flutter 3.13 (#3767) 2023-08-18 17:52:40 -05:00
archive feat(mobile): map view (#3661) 2023-08-27 05:07:35 +00:00
asset_viewer fix(mobile): images rendered twice due to rebuild (#4060) 2023-09-12 20:43:15 +07:00
backup fix (mobile): Fix slow album thumbnail generation for album picker (#3905) 2023-09-13 22:32:06 +07:00
favorite feat(mobile): map view (#3661) 2023-08-27 05:07:35 +00:00
home fix(mobile): images rendered twice due to rebuild (#4060) 2023-09-12 20:43:15 +07:00
login feat(mobile): allow self-signed certificate on the mobile app (#4051) 2023-09-12 21:51:43 +07:00
map fix(mobile): map markers not loading with int coordinates (#3957) 2023-09-05 06:08:43 +07:00
memories chore(mobile): Bump to Flutter 3.13 (#3767) 2023-08-18 17:52:40 -05:00
onboarding chore(mobile): Bump to Flutter 3.13 (#3767) 2023-08-18 17:52:40 -05:00
partner feat(mobile): efficient asset sync (#3945) 2023-09-10 14:51:18 +02:00
search fix(mobile): curated places taking more size on large screens (#3959) 2023-09-05 06:10:27 +07:00
settings feat(mobile): allow self-signed certificate on the mobile app (#4051) 2023-09-12 21:51:43 +07:00