Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3345871
D4955.id16019.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1018 B
Referenced Files
None
Subscribers
None
D4955.id16019.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
@@ -370,17 +370,13 @@
if (this.props.ongoingMessageCreation) {
return true;
}
- for (const localMessageID in this.state.pendingUploads) {
- const messagePendingUploads = this.state.pendingUploads[localMessageID];
- if (
- Object.keys(messagePendingUploads).some(
- localUploadID => !messagePendingUploads[localUploadID].failed,
- )
- ) {
- return true;
- }
- }
- return false;
+ const { pendingUploads } = this.state;
+ return Object.keys(pendingUploads).some(localMessageID => {
+ const messagePendingUploads = pendingUploads[localMessageID];
+ return Object.keys(messagePendingUploads).some(
+ localUploadID => !messagePendingUploads[localUploadID].failed,
+ );
+ });
};
sendTextMessage = async (
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 7:17 AM (19 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2569608
Default Alt Text
D4955.id16019.diff (1018 B)
Attached To
Mode
D4955: [native] Make return value more concise in `uploadInProgress`
Attached
Detach File
Event Timeline
Log In to Comment