diff --git a/lib/shared/thread-actions-utils.js b/lib/shared/thread-actions-utils.js --- a/lib/shared/thread-actions-utils.js +++ b/lib/shared/thread-actions-utils.js @@ -47,7 +47,7 @@ type CreateRealThreadParameters = { +threadInfo: ThreadInfo, +dispatchActionPromise: DispatchActionPromise, - +createNewThread: ClientNewThreadRequest => Promise, + +createNewThinThread: ClientNewThreadRequest => Promise, +sourceMessageID: ?string, +viewerID: ?string, +handleError?: () => mixed, @@ -57,7 +57,7 @@ async function createRealThreadFromPendingThread({ threadInfo, dispatchActionPromise, - createNewThread, + createNewThinThread, sourceMessageID, viewerID, calendarQuery, @@ -75,7 +75,7 @@ otherMemberIDs.length > 0, 'otherMemberIDs should not be empty for threads', ); - resultPromise = createNewThread({ + resultPromise = createNewThinThread({ type: pendingThreadType(otherMemberIDs.length), initialMemberIDs: otherMemberIDs, color: threadInfo.color, @@ -86,7 +86,7 @@ sourceMessageID, 'sourceMessageID should be set when creating a sidebar', ); - resultPromise = createNewThread({ + resultPromise = createNewThinThread({ type: threadTypes.SIDEBAR, initialMemberIDs: otherMemberIDs, color: threadInfo.color, 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 @@ -155,7 +155,7 @@ input: SendMultimediaMessageInput, ) => Promise, +sendTextMessage: (input: SendTextMessageInput) => Promise, - +newThread: (request: ClientNewThreadRequest) => Promise, + +newThinThread: (request: ClientNewThreadRequest) => Promise, +textMessageCreationSideEffectsFunc: CreationSideEffectsFunc, }; type State = { @@ -552,7 +552,7 @@ threadCreationPromise = createRealThreadFromPendingThread({ threadInfo, dispatchActionPromise: this.props.dispatchActionPromise, - createNewThread: this.props.newThread, + createNewThinThread: this.props.newThinThread, sourceMessageID: threadInfo.sourceMessageID, viewerID: this.props.viewerID, calendarQuery, @@ -1734,7 +1734,7 @@ const callBlobServiceUpload = useBlobServiceUpload(); const callSendMultimediaMessage = useSendMultimediaMessage(); const callSendTextMessage = useSendTextMessage(); - const callNewThread = useNewThread(); + const callNewThinThread = useNewThread(); const dispatchActionPromise = useDispatchActionPromise(); const dispatch = useDispatch(); const mediaReportsEnabled = useIsReportEnabled('mediaReports'); @@ -1755,7 +1755,7 @@ blobServiceUpload={callBlobServiceUpload} sendMultimediaMessage={callSendMultimediaMessage} sendTextMessage={callSendTextMessage} - newThread={callNewThread} + newThinThread={callNewThinThread} dispatchActionPromise={dispatchActionPromise} dispatch={dispatch} staffCanSee={staffCanSee} 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 @@ -149,7 +149,7 @@ input: LegacySendMultimediaMessageInput, ) => Promise, +sendTextMessage: (input: SendTextMessageInput) => Promise, - +newThread: (request: ClientNewThreadRequest) => Promise, + +newThinThread: (request: ClientNewThreadRequest) => Promise, +pushModal: PushModal, +sendCallbacks: $ReadOnlyArray<() => mixed>, +registerSendCallback: (() => mixed) => void, @@ -581,7 +581,7 @@ threadCreationPromise = createRealThreadFromPendingThread({ threadInfo, dispatchActionPromise: this.props.dispatchActionPromise, - createNewThread: this.props.newThread, + createNewThinThread: this.props.newThinThread, sourceMessageID: threadInfo.sourceMessageID, viewerID: this.props.viewerID, calendarQuery, @@ -1671,7 +1671,7 @@ const callDeleteUpload = useDeleteUpload(); const callSendMultimediaMessage = useLegacySendMultimediaMessage(); const callSendTextMessage = useSendTextMessage(); - const callNewThread = useNewThread(); + const callNewThinThread = useNewThread(); const dispatch = useDispatch(); const dispatchActionPromise = useDispatchActionPromise(); const modalContext = useModalContext(); @@ -1708,7 +1708,7 @@ deleteUpload={callDeleteUpload} sendMultimediaMessage={callSendMultimediaMessage} sendTextMessage={callSendTextMessage} - newThread={callNewThread} + newThinThread={callNewThinThread} dispatch={dispatch} dispatchActionPromise={dispatchActionPromise} pushModal={modalContext.pushModal}