fix(mobile): Showing videos of partner in search page quick links (#18855)

Add userId to the contact of the timeline interface method watchAllVideosTimeline and modify the query in the repository
This commit is contained in:
JobiJoba 2025-06-02 21:35:18 +07:00 committed by GitHub
parent fa22e865a4
commit d48702f943
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View File

@ -14,7 +14,7 @@ abstract class ITimelineRepository {
Album album, Album album,
GroupAssetsBy groupAssetsBy, GroupAssetsBy groupAssetsBy,
); );
Stream<RenderList> watchAllVideosTimeline(); Stream<RenderList> watchAllVideosTimeline(String userId);
Stream<RenderList> watchHomeTimeline( Stream<RenderList> watchHomeTimeline(
String userId, String userId,

View File

@ -98,8 +98,10 @@ class TimelineRepository extends DatabaseRepository
} }
@override @override
Stream<RenderList> watchAllVideosTimeline() { Stream<RenderList> watchAllVideosTimeline(String userId) {
final query = db.assets final query = db.assets
.where()
.ownerIdEqualToAnyChecksum(fastHash(userId))
.filter() .filter()
.isTrashedEqualTo(false) .isTrashedEqualTo(false)
.visibilityEqualTo(AssetVisibilityEnum.timeline) .visibilityEqualTo(AssetVisibilityEnum.timeline)

View File

@ -75,7 +75,9 @@ class TimelineService {
} }
Stream<RenderList> watchAllVideosTimeline() { Stream<RenderList> watchAllVideosTimeline() {
return _timelineRepository.watchAllVideosTimeline(); final user = _userService.getMyUser();
return _timelineRepository.watchAllVideosTimeline(user.id);
} }
Future<RenderList> getTimelineFromAssets( Future<RenderList> getTimelineFromAssets(