From 40fb401034b5a12a9346e0ab9d2505fb2fb92083 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sun, 16 Mar 2025 12:47:19 +0000 Subject: fix(mobile): Fix shared links getting stored as text. #956 --- apps/mobile/app/sharing.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/mobile/app/sharing.tsx') diff --git a/apps/mobile/app/sharing.tsx b/apps/mobile/app/sharing.tsx index e2e1823b..55c2da9d 100644 --- a/apps/mobile/app/sharing.tsx +++ b/apps/mobile/app/sharing.tsx @@ -42,7 +42,9 @@ function SaveBookmark({ setMode }: { setMode: (mode: Mode) => void }) { if (isLoading) { return; } - if (!isPending && shareIntent?.text) { + if (!isPending && shareIntent.webUrl) { + mutate({ type: BookmarkTypes.LINK, url: shareIntent.webUrl }); + } else if (!isPending && shareIntent?.text) { const val = z.string().url(); if (val.safeParse(shareIntent.text).success) { // This is a URL, else treated as text -- cgit v1.2.3-70-g09d2