diff --git a/native/chat/image-paste-modal.react.js b/native/chat/image-paste-modal.react.js --- a/native/chat/image-paste-modal.react.js +++ b/native/chat/image-paste-modal.react.js @@ -34,10 +34,14 @@ }, } = props; + const [sendButtonEnabled, setSendButtonEnabled] = React.useState(true); + const sendImage = React.useCallback(async () => { + setSendButtonEnabled(false); navigation.goBackOnce(); const selection: $ReadOnlyArray = [imagePasteStagingInfo]; invariant(inputState, 'inputState should be set in ImagePasteModal'); + await inputState.sendMultimediaMessage(selection, threadInfo); }, [imagePasteStagingInfo, inputState, navigation, threadInfo]); @@ -52,7 +56,7 @@ -