From ee25b89801c7038a95eb95500082dbccccb5cba9 Mon Sep 17 00:00:00 2001 From: Hailey Date: Mon, 7 Oct 2024 14:09:47 -0700 Subject: [Video] Add dimension info to share intent (#5639) --- src/lib/hooks/useIntentHandler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/hooks/useIntentHandler.ts') 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 } -- cgit 1.4.1