Page MenuHomePhabricator

D4955.id16019.diff
No OneTemporary

D4955.id16019.diff

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

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)

Event Timeline