1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-19 00:32:49 +02:00
immich/mobile/lib/modules/backup/providers
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
..
backup.provider.dart fix (mobile): Fix slow album thumbnail generation for album picker (#3905) 2023-09-13 22:32:06 +07:00
error_backup_list.provider.dart Add information for uploading asset and error indication with error message for each failed upload. (#315) 2022-07-06 16:12:55 -05:00
ios_background_settings.provider.dart feat(mobile): Background app refresh status (#1839) 2023-02-23 12:33:53 -06:00
manual_upload.provider.dart fix(mobile): LivePhoto video not uploaded during manual asset upload (#3732) 2023-08-17 07:29:49 -05:00