Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32969242
D4877.1768301116.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
984 B
Referenced Files
None
Subscribers
None
D4877.1768301116.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
@@ -1020,10 +1020,7 @@
localMessageID: string,
threadInfo: ThreadInfo,
) => {
- let pendingUploads = this.state.pendingUploads[localMessageID];
- if (!pendingUploads) {
- pendingUploads = {};
- }
+ const pendingUploads = this.state.pendingUploads[localMessageID] ?? {};
const now = Date.now();
@@ -1111,13 +1108,12 @@
...updatedMedia,
localMediaSelection: selection,
};
- } else {
- return {
- type: 'video',
- ...updatedMedia,
- localMediaSelection: selection,
- };
}
+ return {
+ type: 'video',
+ ...updatedMedia,
+ localMediaSelection: selection,
+ };
});
let newRawMessageInfo;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 13, 10:45 AM (3 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5925237
Default Alt Text
D4877.1768301116.diff (984 B)
Attached To
Mode
D4877: [native] Clean up lines in `retryMultimediaMessage`
Attached
Detach File
Event Timeline
Log In to Comment