diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-09-13 08:57:41 -0700 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2024-09-13 08:57:41 -0700 |
commit | c7231537f1d18de01bb3502e508999276e47b6df (patch) | |
tree | 3f8c1e73b4bff483a2ca5bfb34c6413345e2320c /src/lib/hooks/useIntentHandler.ts | |
parent | 1dc7ef137cb7a546b1c84c1e7304a4f74ea1e66b (diff) | |
parent | b47bac965f5267756f9529d911e7a49aba9e3e58 (diff) | |
download | voidsky-c7231537f1d18de01bb3502e508999276e47b6df.tar.zst |
Merge branch 'ten-milly' into main
Diffstat (limited to 'src/lib/hooks/useIntentHandler.ts')
-rw-r--r-- | src/lib/hooks/useIntentHandler.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/hooks/useIntentHandler.ts b/src/lib/hooks/useIntentHandler.ts index 8cccda48f..67f1c2c38 100644 --- a/src/lib/hooks/useIntentHandler.ts +++ b/src/lib/hooks/useIntentHandler.ts @@ -71,7 +71,7 @@ export function useIntentHandler() { }, [incomingUrl, composeIntent, verifyEmailIntent]) } -function useComposeIntent() { +export function useComposeIntent() { const closeAllActiveElements = useCloseAllActiveElements() const {openComposer} = useComposerControls() const {hasSession} = useSession() @@ -97,6 +97,10 @@ function useComposeIntent() { if (part.includes('https://') || part.includes('http://')) { return false } + console.log({ + part, + text: VALID_IMAGE_REGEX.test(part), + }) // We also should just filter out cases that don't have all the info we need return VALID_IMAGE_REGEX.test(part) }) |