Skip to content

Commit 40fb401

Browse files
committed
fix(mobile): Fix shared links getting stored as text. #956
1 parent c388fb2 commit 40fb401

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

apps/mobile/app.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Hoarder App",
44
"slug": "hoarder",
55
"scheme": "hoarder",
6-
"version": "1.6.8",
6+
"version": "1.6.9",
77
"orientation": "portrait",
88
"icon": "./assets/icon.png",
99
"userInterfaceStyle": "automatic",
@@ -29,7 +29,7 @@
2929
"NSAllowsArbitraryLoads": true
3030
}
3131
},
32-
"buildNumber": "21"
32+
"buildNumber": "22"
3333
},
3434
"android": {
3535
"adaptiveIcon": {
@@ -47,7 +47,7 @@
4747
}
4848
},
4949
"package": "app.hoarder.hoardermobile",
50-
"versionCode": 21
50+
"versionCode": 22
5151
},
5252
"plugins": [
5353
"./plugins/trust-local-certs.js",

apps/mobile/app/sharing.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ function SaveBookmark({ setMode }: { setMode: (mode: Mode) => void }) {
4242
if (isLoading) {
4343
return;
4444
}
45-
if (!isPending && shareIntent?.text) {
45+
if (!isPending && shareIntent.webUrl) {
46+
mutate({ type: BookmarkTypes.LINK, url: shareIntent.webUrl });
47+
} else if (!isPending && shareIntent?.text) {
4648
const val = z.string().url();
4749
if (val.safeParse(shareIntent.text).success) {
4850
// This is a URL, else treated as text

0 commit comments

Comments
 (0)