High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): show most recent image in album as thumbnail (#21037)
Aaron Tulino257b0c74af98
diff --git a/mobile/lib/infrastructure/repositories/local_album.repository.dart b/mobile/lib/infrastructure/repositories/local_album.repository.dartindex 869d8f0dc8..db72dddc57 100644--- a/mobile/lib/infrastructure/repositories/local_album.repository.dart+++ b/mobile/lib/infrastructure/repositories/local_album.repository.dart@@ -319,7 +319,7 @@ class DriftLocalAlbumRepository extends DriftDatabaseRepository {innerJoin(_db.localAssetEntity, _db.localAlbumAssetEntity.assetId.equalsExp(_db.localAssetEntity.id)),])..where(_db.localAlbumAssetEntity.albumId.equals(albumId))- ..orderBy([OrderingTerm.asc(_db.localAssetEntity.id)])+ ..orderBy([OrderingTerm.desc(_db.localAssetEntity.createdAt)])..limit(1);final results = await query.map((row) => row.readTable(_db.localAssetEntity).toDto()).get();