Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3383498
D10168.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D10168.diff
View Options
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);
},
),
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 4:07 PM (21 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2597443
Default Alt Text
D10168.diff (3 KB)
Attached To
Mode
D10168: [native][web] Cast InputState / BaseInputState when returning from selectors
Attached
Detach File
Event Timeline
Log In to Comment