diff --git a/native/chat/text-message-tooltip-modal.react.js b/native/chat/text-message-tooltip-modal.react.js --- a/native/chat/text-message-tooltip-modal.react.js +++ b/native/chat/text-message-tooltip-modal.react.js @@ -63,8 +63,14 @@ inputState, 'inputState should be set in TextMessageTooltipModal.onPressEdit', ); - inputState.setEditedMessage(messageInfo); - }, [inputState, messageInfo]); + const updateInputBar = () => { + inputState.editInputMessage({ + message: text, + mode: 'replace', + }); + }; + inputState.setEditedMessage(messageInfo, updateInputBar); + }, [inputState, messageInfo, text]); const renderEditIcon = React.useCallback( style => , [], diff --git a/native/input/input-state-container.react.js b/native/input/input-state-container.react.js --- a/native/input/input-state-container.react.js +++ b/native/input/input-state-container.react.js @@ -1207,10 +1207,13 @@ this.editInputBarCallbacks.push(callbackEditInputBar); }; - setEditedMessage = (editedMessage: ?MessageInfo) => { - this.setState({ - editState: { editedMessage }, - }); + setEditedMessage = (editedMessage: ?MessageInfo, callback?: () => void) => { + this.setState( + { + editState: { editedMessage }, + }, + callback, + ); }; removeEditInputMessageListener = (