fix send button disabled when sharing post via DM without text

The submitDisabled check in MessageInput (native) didn't account for
hasEmbed, so the send button stayed disabled when sharing a post
without entering text. The onSubmit handler and MessageComposer
already handled this correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-04-24 11:44:55 +03:00
parent a90bb66d67
commit 5b4629636e
@@ -136,7 +136,8 @@ export function MessageInput({
scrollEnabled: isInputScrollable.get(),
}))
const submitDisabled = needsEmailVerification || message.trim().length === 0
const submitDisabled =
needsEmailVerification || (!hasEmbed && message.trim().length === 0)
const blur = useCallback(() => {
inputRef.current?.blur()