Skip to content

armgit / ente

Public Imported from GitHub
0

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

Merge branch 'main' into main-1

Ashil5e29bad79b5f
diff --cc mobile/apps/photos/lib/ui/social/feed_screen.dart
index 584d169c7b,d2504f7c88..68d4ff8c3e
--- a/mobile/apps/photos/lib/ui/social/feed_screen.dart
+++ b/mobile/apps/photos/lib/ui/social/feed_screen.dart
@@@ -581,14 -586,8 +586,15 @@@ class _FeedScreenState extends State<Fe
onSharedPhotoTap: (fileID) => _openSharedPhotos(
item,
initialFileID: fileID,
+ heroTagPrefix: heroTagPrefix,
),
+ onSharedExtraCountTap: () => _openSharedCollection(
+ item,
+ jumpToFileID: _jumpFileIDForSharedCollection(
+ type: item.type,
+ sharedFileIDs: item.sharedFileIDs,
+ ),
+ ),
);
},
),
diff --cc mobile/apps/photos/lib/ui/social/widgets/feed_item_widget.dart
index c1b41ad911,64905d3d06..ccec600b38
--- a/mobile/apps/photos/lib/ui/social/widgets/feed_item_widget.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/feed_item_widget.dart
@@@ -193,9 -192,9 +196,10 @@@ class FeedItemWidget extends StatelessW
child: SharedPhotosGrid(
fileIDs: feedItem.sharedFileIDs!,
collectionID: feedItem.collectionID,
+ heroTagPrefix: heroTagPrefix,
onTap: onTap,
onPhotoTap: onSharedPhotoTap,
+ onExtraCountTap: onSharedExtraCountTap,
),
),
],
diff --cc mobile/apps/photos/lib/ui/social/widgets/shared_photos_grid.dart
index 96c6731ebd,66b54ba137..545ef7495a
--- a/mobile/apps/photos/lib/ui/social/widgets/shared_photos_grid.dart
+++ b/mobile/apps/photos/lib/ui/social/widgets/shared_photos_grid.dart
@@@ -26,8 -26,8 +26,10 @@@ class SharedPhotosGrid extends Stateful
/// Called when user taps an individual photo thumbnail.
final ValueChanged<int>? onPhotoTap;
+ /// Called when user taps the +N extra-count badge.
+ final VoidCallback? onExtraCountTap;
+ /// Prefix used for Hero tags while opening shared photos.
+ final String heroTagPrefix;
/// Size of the grid (width). Height is calculated based on layout.
final double gridSize;
@@@ -35,9 -35,9 +37,10 @@@
const SharedPhotosGrid({
required this.fileIDs,
required this.collectionID,
+ required this.heroTagPrefix,
this.onTap,
this.onPhotoTap,
+ this.onExtraCountTap,
this.gridSize = 300,
super.key,
});