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,
GroupAssetsBy groupAssetsBy,
);
Stream<RenderList> watchAllVideosTimeline();
Stream<RenderList> watchAllVideosTimeline(String userId);
Stream<RenderList> watchHomeTimeline(
String userId,

View File

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

View File

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