Page MenuHomePhabricator

D4892.id15798.diff
No OneTemporary

D4892.id15798.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
@@ -372,11 +372,12 @@
}
for (const localMessageID in this.state.pendingUploads) {
const messagePendingUploads = this.state.pendingUploads[localMessageID];
- for (const localUploadID in messagePendingUploads) {
- const { failed } = messagePendingUploads[localUploadID];
- if (!failed) {
- return true;
- }
+ if (
+ Object.keys(messagePendingUploads).some(
+ localUploadID => !messagePendingUploads[localUploadID].failed,
+ )
+ ) {
+ return true;
}
}
return false;

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 5:48 AM (14 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2582789
Default Alt Text
D4892.id15798.diff (776 B)

Event Timeline