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 @@ -397,24 +397,25 @@ inputStateSelector: State => InputState = createSelector( (state: State) => state.pendingUploads, - (pendingUploads: PendingMultimediaUploads) => ({ - pendingUploads, - sendTextMessage: this.sendTextMessage, - sendMultimediaMessage: this.sendMultimediaMessage, - editInputMessage: this.editInputMessage, - addEditInputMessageListener: this.addEditInputMessageListener, - removeEditInputMessageListener: this.removeEditInputMessageListener, - messageHasUploadFailure: this.messageHasUploadFailure, - retryMessage: this.retryMessage, - registerSendCallback: this.registerSendCallback, - unregisterSendCallback: this.unregisterSendCallback, - uploadInProgress: this.uploadInProgress, - reportURIDisplayed: this.reportURIDisplayed, - setPendingThreadUpdateHandler: this.setPendingThreadUpdateHandler, - scrollToMessage: this.scrollToMessage, - addScrollToMessageListener: this.addScrollToMessageListener, - removeScrollToMessageListener: this.removeScrollToMessageListener, - }), + (pendingUploads: PendingMultimediaUploads) => + ({ + pendingUploads, + sendTextMessage: this.sendTextMessage, + sendMultimediaMessage: this.sendMultimediaMessage, + editInputMessage: this.editInputMessage, + addEditInputMessageListener: this.addEditInputMessageListener, + removeEditInputMessageListener: this.removeEditInputMessageListener, + messageHasUploadFailure: this.messageHasUploadFailure, + retryMessage: this.retryMessage, + registerSendCallback: this.registerSendCallback, + unregisterSendCallback: this.unregisterSendCallback, + uploadInProgress: this.uploadInProgress, + reportURIDisplayed: this.reportURIDisplayed, + setPendingThreadUpdateHandler: this.setPendingThreadUpdateHandler, + scrollToMessage: this.scrollToMessage, + addScrollToMessageListener: this.addScrollToMessageListener, + removeScrollToMessageListener: this.removeScrollToMessageListener, + }: InputState), ); scrollToMessage = (messageID: string) => { 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 @@ -620,7 +620,7 @@ ]; } } - return { + return ({ pendingUploads: threadPendingUploads, assignedUploads, draft: draft ?? '', @@ -660,7 +660,7 @@ removeReplyListener: this.removeReplyListener, registerSendCallback: this.props.registerSendCallback, unregisterSendCallback: this.props.unregisterSendCallback, - }; + }: BaseInputState); }, ), );