Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Open shared feed taps in album instead of viewer

ashilkn8e65801e80a6
diff --git a/mobile/apps/photos/lib/ui/social/feed_screen.dart b/mobile/apps/photos/lib/ui/social/feed_screen.dart
index 46678deb8c..8cbf425c47 100644
--- a/mobile/apps/photos/lib/ui/social/feed_screen.dart
+++ b/mobile/apps/photos/lib/ui/social/feed_screen.dart
@@ -575,12 +575,13 @@ class _FeedScreenState extends State<FeedScreen> {
item,
jumpToFileID: _jumpFileIDForSharedCollection(
type: item.type,
+ fileID: item.fileID,
sharedFileIDs: item.sharedFileIDs,
),
),
- onSharedPhotoTap: (fileID) => _openSharedPhotos(
+ onSharedPhotoTap: (fileID) => _openSharedCollection(
item,
- initialFileID: fileID,
+ jumpToFileID: fileID,
),
);
},
@@ -624,7 +625,14 @@ class _FeedScreenState extends State<FeedScreen> {
_openPhoto(item);
break;
case FeedItemType.sharedPhoto:
- _openSharedPhotos(item);
+ _openSharedCollection(
+ item,
+ jumpToFileID: _jumpFileIDForSharedCollection(
+ type: item.type,
+ fileID: item.fileID,
+ sharedFileIDs: item.sharedFileIDs,
+ ),
+ );
break;
case FeedItemType.sharedCollection:
_openSharedCollection(item);