about summary refs log tree commit diff
path: root/src/lib/hooks/useIntentHandler.ts
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-10-07 14:09:47 -0700
committerGitHub <noreply@github.com>2024-10-07 14:09:47 -0700
commitee25b89801c7038a95eb95500082dbccccb5cba9 (patch)
tree265b9380950ffa95d6fbfc8763cb5d6abc3500da /src/lib/hooks/useIntentHandler.ts
parent94e7bfbe40ba6766361caaba99feff74a187613a (diff)
downloadvoidsky-ee25b89801c7038a95eb95500082dbccccb5cba9.tar.zst
[Video] Add dimension info to share intent (#5639)
Diffstat (limited to 'src/lib/hooks/useIntentHandler.ts')
-rw-r--r--src/lib/hooks/useIntentHandler.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/hooks/useIntentHandler.ts b/src/lib/hooks/useIntentHandler.ts
index ce1d474d3..98ba4ec02 100644
--- a/src/lib/hooks/useIntentHandler.ts
+++ b/src/lib/hooks/useIntentHandler.ts
@@ -93,9 +93,10 @@ export function useComposeIntent() {
 
       // Whenever a video URI is present, we don't support adding images right now.
       if (videoUri) {
+        const [uri, width, height] = videoUri.split('|')
         openComposer({
           text: text ?? undefined,
-          videoUri,
+          videoUri: {uri, width: Number(width), height: Number(height)},
         })
         return
       }