mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
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:
parent
fa22e865a4
commit
d48702f943
@ -14,7 +14,7 @@ abstract class ITimelineRepository {
|
||||
Album album,
|
||||
GroupAssetsBy groupAssetsBy,
|
||||
);
|
||||
Stream<RenderList> watchAllVideosTimeline();
|
||||
Stream<RenderList> watchAllVideosTimeline(String userId);
|
||||
|
||||
Stream<RenderList> watchHomeTimeline(
|
||||
String userId,
|
||||
|
@ -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)
|
||||
|
@ -75,7 +75,9 @@ class TimelineService {
|
||||
}
|
||||
|
||||
Stream<RenderList> watchAllVideosTimeline() {
|
||||
return _timelineRepository.watchAllVideosTimeline();
|
||||
final user = _userService.getMyUser();
|
||||
|
||||
return _timelineRepository.watchAllVideosTimeline(user.id);
|
||||
}
|
||||
|
||||
Future<RenderList> getTimelineFromAssets(
|
||||
|
Loading…
x
Reference in New Issue
Block a user