File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ abstract class ITimelineRepository {
1414 Album album,
1515 GroupAssetsBy groupAssetsBy,
1616 );
17- Stream <RenderList > watchAllVideosTimeline ();
17+ Stream <RenderList > watchAllVideosTimeline (String userId );
1818
1919 Stream <RenderList > watchHomeTimeline (
2020 String userId,
Original file line number Diff line number Diff line change @@ -98,8 +98,10 @@ class TimelineRepository extends DatabaseRepository
9898 }
9999
100100 @override
101- Stream <RenderList > watchAllVideosTimeline () {
101+ Stream <RenderList > watchAllVideosTimeline (String userId ) {
102102 final query = db.assets
103+ .where ()
104+ .ownerIdEqualToAnyChecksum (fastHash (userId))
103105 .filter ()
104106 .isTrashedEqualTo (false )
105107 .visibilityEqualTo (AssetVisibilityEnum .timeline)
Original file line number Diff line number Diff line change @@ -75,7 +75,9 @@ class TimelineService {
7575 }
7676
7777 Stream <RenderList > watchAllVideosTimeline () {
78- return _timelineRepository.watchAllVideosTimeline ();
78+ final user = _userService.getMyUser ();
79+
80+ return _timelineRepository.watchAllVideosTimeline (user.id);
7981 }
8082
8183 Future <RenderList > getTimelineFromAssets (
You can’t perform that action at this time.
0 commit comments