1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-07 23:03:36 +02:00

feat(mobile): drift favorite page (#19783)

* feat(mobile): drift favorite page

* remove status indicator join
This commit is contained in:
Daimolean
2025-07-08 01:57:08 +08:00
committed by GitHub
parent 8c5269c002
commit d149d6fa3f
6 changed files with 114 additions and 0 deletions

View File

@ -54,6 +54,13 @@ class TimelineFactory {
_timelineRepository.watchRemoteBucket(albumId, groupBy: groupBy),
);
TimelineService favorite(String userId) => TimelineService(
assetSource: (offset, count) => _timelineRepository
.getFavoriteBucketAssets(userId, offset: offset, count: count),
bucketSource: () =>
_timelineRepository.watchFavoriteBucket(userId, groupBy: groupBy),
);
TimelineService trash(String userId) => TimelineService(
assetSource: (offset, count) => _timelineRepository
.getTrashBucketAssets(userId, offset: offset, count: count),