Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Reduce copies

vishnukvmde90a8675a0ab
diff --git a/mobile/apps/photos/lib/ui/sharing/manage_links_widget.dart b/mobile/apps/photos/lib/ui/sharing/manage_links_widget.dart
index de8a61d338..e82f4fc841 100644
--- a/mobile/apps/photos/lib/ui/sharing/manage_links_widget.dart
+++ b/mobile/apps/photos/lib/ui/sharing/manage_links_widget.dart
@@ -391,7 +391,6 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {
onTap: () async {
await shareAlbumLink(
context,
- widget.collection!,
urlValue,
sendLinkButtonKey,
);
diff --git a/mobile/apps/photos/lib/ui/sharing/public_link_enabled_actions_widget.dart b/mobile/apps/photos/lib/ui/sharing/public_link_enabled_actions_widget.dart
index 3b41109854..b69219eb8a 100644
--- a/mobile/apps/photos/lib/ui/sharing/public_link_enabled_actions_widget.dart
+++ b/mobile/apps/photos/lib/ui/sharing/public_link_enabled_actions_widget.dart
@@ -83,7 +83,6 @@ class PublicLinkEnabledActionsWidget extends StatelessWidget {
onTap: () async {
await shareAlbumLink(
context,
- collection,
url,
effectiveKey,
);
diff --git a/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart
index 212219c276..5400e7b842 100644
--- a/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/actions/file_selection_actions_widget.dart
@@ -1025,11 +1025,8 @@ class _FileSelectionActionsWidgetState
_cachedCollectionForSharedLink!,
);
unawaited(Clipboard.setData(ClipboardData(text: url)));
- const description =
- 'Check out, comment and react on photos privately with Ente\'s end to end encryption';
await shareLinkWithDescription(
url,
- description: description,
context: context,
key: sendLinkButtonKey,
);
diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/collect_photos_bottom_buttons.dart b/mobile/apps/photos/lib/ui/viewer/gallery/collect_photos_bottom_buttons.dart
index 9c9c0f81d9..fbd7a71f27 100644
--- a/mobile/apps/photos/lib/ui/viewer/gallery/collect_photos_bottom_buttons.dart
+++ b/mobile/apps/photos/lib/ui/viewer/gallery/collect_photos_bottom_buttons.dart
@@ -47,7 +47,6 @@ class _EmptyAlbumStateNewState extends State<CollectPhotosBottomButtons> {
final String url = CollectionsService.instance.getPublicUrl(widget.c);
await shareAlbumLink(
context,
- widget.c,
url,
shareLinkAlbumButtonKey,
);
diff --git a/mobile/apps/photos/lib/utils/share_util.dart b/mobile/apps/photos/lib/utils/share_util.dart
index c9a43eb313..83b3a553b2 100644
--- a/mobile/apps/photos/lib/utils/share_util.dart
+++ b/mobile/apps/photos/lib/utils/share_util.dart
@@ -263,16 +263,11 @@ void shareSelected(
Future<void> shareAlbumLink(
BuildContext context,
- Collection collection,
String url,
GlobalKey key,
) async {
- final description =
- 'Check out, comment and react on photos from "${collection.displayName}" privately with Ente\'s end to end encryption';
-
await shareLinkWithDescription(
url,
- description: description,
context: context,
key: key,
);