diff options
author | Eric Bailey <git@esb.lol> | 2024-09-09 20:57:32 -0500 |
---|---|---|
committer | Eric Bailey <git@esb.lol> | 2024-09-11 19:58:16 -0500 |
commit | 76c584d981f195a580e132b786e101b3d0d32380 (patch) | |
tree | 6b03b716dbab72a834e9b89ec67b7b3aefcf6c90 /src/lib/hooks | |
parent | ae71f5ce84165b683b880c4a585b5a617f2c36bb (diff) | |
download | voidsky-76c584d981f195a580e132b786e101b3d0d32380.tar.zst |
WIP
Diffstat (limited to 'src/lib/hooks')
-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) }) |