0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-21 00:52:43 -05:00

fix(mobile): Sort newest first for asset selection in album (#2833)

This commit is contained in:
Alex 2023-06-17 23:09:55 -05:00 committed by GitHub
parent 34201be74c
commit b47027efc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -190,7 +190,7 @@ final remoteAssetsProvider =
.remoteIdIsNotNull() .remoteIdIsNotNull()
.filter() .filter()
.ownerIdEqualTo(userId) .ownerIdEqualTo(userId)
.sortByFileCreatedAt(); .sortByFileCreatedAtDesc();
final settings = ref.watch(appSettingsServiceProvider); final settings = ref.watch(appSettingsServiceProvider);
final groupBy = final groupBy =
GroupAssetsBy.values[settings.getSetting(AppSettingsEnum.groupAssetsBy)]; GroupAssetsBy.values[settings.getSetting(AppSettingsEnum.groupAssetsBy)];