From 5367e90ecf79fa56037f65228db4ba8c7977956c Mon Sep 17 00:00:00 2001 From: ashilkn Date: Mon, 3 Jun 2024 17:49:37 +0530 Subject: [PATCH] [mob][photos] Stop showing redundant toast --- .../lib/ui/viewer/actions/file_selection_actions_widget.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart index 24eeb04647..afc7711350 100644 --- a/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart +++ b/mobile/lib/ui/viewer/actions/file_selection_actions_widget.dart @@ -766,9 +766,8 @@ class _FileSelectionActionsWidgetState ); final String url = "${_cachedCollectionForSharedLink!.publicURLs?.first?.url}#$collectionKey"; + unawaited(Clipboard.setData(ClipboardData(text: url))); await shareImageAndUrl(placeholderPath!, url); - await Clipboard.setData(ClipboardData(text: url)); - showShortToast(context, S.of(context).linkCopiedToClipboard); if (placeholderPath != null) { final file = File(placeholderPath!); try {