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 @@ -470,8 +470,9 @@ async processAndSendTextMessageDMOperation( messageInfo: RawTextMessageInfo, inputThreadInfo: ThreadInfo, + parentThreadInfo: ?ThreadInfo, ) { - void this.props.processAndSendDMOperation({ + await this.props.processAndSendDMOperation({ type: dmOperationSpecificationTypes.OUTBOUND, op: { type: 'send_text_message', @@ -490,6 +491,12 @@ : inputThreadInfo.id, }, }); + + await this.props.textMessageCreationSideEffectsFunc( + messageInfo, + inputThreadInfo, + parentThreadInfo, + ); } async generateAndSendTextMessageAction( @@ -498,7 +505,11 @@ parentThreadInfo: ?ThreadInfo, ) { if (threadTypeIsThick(threadInfo.type)) { - void this.processAndSendTextMessageDMOperation(messageInfo, threadInfo); + void this.processAndSendTextMessageDMOperation( + messageInfo, + threadInfo, + parentThreadInfo, + ); return; } void this.props.dispatchActionPromise( diff --git a/web/input/input-state-container.react.js b/web/input/input-state-container.react.js --- a/web/input/input-state-container.react.js +++ b/web/input/input-state-container.react.js @@ -1281,8 +1281,9 @@ async processAndSendTextMessageDMOperation( messageInfo: RawTextMessageInfo, inputThreadInfo: ThreadInfo, + parentThreadInfo: ?ThreadInfo, ) { - void this.props.processAndSendDMOperation({ + await this.props.processAndSendDMOperation({ type: dmOperationSpecificationTypes.OUTBOUND, op: { type: 'send_text_message', @@ -1301,6 +1302,12 @@ : inputThreadInfo.id, }, }); + + await this.props.textMessageCreationSideEffectsFunc( + messageInfo, + inputThreadInfo, + parentThreadInfo, + ); } async generateAndSendTextMessageAction( @@ -1309,7 +1316,11 @@ parentThreadInfo: ?ThreadInfo, ) { if (threadTypeIsThick(threadInfo.type)) { - void this.processAndSendTextMessageDMOperation(messageInfo, threadInfo); + void this.processAndSendTextMessageDMOperation( + messageInfo, + threadInfo, + parentThreadInfo, + ); return; } void this.props.dispatchActionPromise(