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,11 +34,16 @@ }, } = props; - const sendImage = React.useCallback(async () => { + const [sendButtonEnabled, setSendButtonEnabled] = React.useState(true); + + const sendImage = React.useCallback(() => { + setSendButtonEnabled(false); navigation.goBackOnce(); const selection: $ReadOnlyArray = [imagePasteStagingInfo]; invariant(inputState, 'inputState should be set in ImagePasteModal'); - await inputState.sendMultimediaMessage(selection, threadInfo); + (async () => { + await inputState.sendMultimediaMessage(selection, threadInfo); + })(); }, [imagePasteStagingInfo, inputState, navigation, threadInfo]); const cancel = React.useCallback(async () => { @@ -52,7 +57,7 @@ -