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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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),