diff options
author | Hailey <me@haileyok.com> | 2024-10-07 14:09:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-07 14:09:47 -0700 |
commit | ee25b89801c7038a95eb95500082dbccccb5cba9 (patch) | |
tree | 265b9380950ffa95d6fbfc8763cb5d6abc3500da /src/lib/hooks/useIntentHandler.ts | |
parent | 94e7bfbe40ba6766361caaba99feff74a187613a (diff) | |
download | voidsky-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.ts | 3 |
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 } |