Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33470756
D4877.1769037722.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.1769037722.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
Wed, Jan 21, 11:22 PM (13 m, 26 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5972370
Default Alt Text
D4877.1769037722.diff (984 B)
Attached To
Mode
D4877: [native] Clean up lines in `retryMultimediaMessage`
Attached
Detach File
Event Timeline
Log In to Comment