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,
|
Album album,
|
||||||
GroupAssetsBy groupAssetsBy,
|
GroupAssetsBy groupAssetsBy,
|
||||||
);
|
);
|
||||||
Stream<RenderList> watchAllVideosTimeline();
|
Stream<RenderList> watchAllVideosTimeline(String userId);
|
||||||
|
|
||||||
Stream<RenderList> watchHomeTimeline(
|
Stream<RenderList> watchHomeTimeline(
|
||||||
String userId,
|
String userId,
|
||||||
|
@ -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)
|
||||||
|
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user