Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3365108
D4509.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D4509.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
@@ -495,25 +495,11 @@
for (const selection of selections) {
const localMediaID = getNextLocalUploadID();
let ids;
- if (selection.step === 'photo_library') {
- media.push({
- id: localMediaID,
- uri: selection.uri,
- type: 'photo',
- dimensions: selection.dimensions,
- localMediaSelection: selection,
- });
- ids = { type: 'photo', localMediaID };
- } else if (selection.step === 'photo_capture') {
- media.push({
- id: localMediaID,
- uri: selection.uri,
- type: 'photo',
- dimensions: selection.dimensions,
- localMediaSelection: selection,
- });
- ids = { type: 'photo', localMediaID };
- } else if (selection.step === 'photo_paste') {
+ if (
+ selection.step === 'photo_library' ||
+ selection.step === 'photo_capture' ||
+ selection.step === 'photo_paste'
+ ) {
media.push({
id: localMediaID,
uri: selection.uri,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 6:35 AM (21 h, 4 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2583311
Default Alt Text
D4509.diff (1 KB)
Attached To
Mode
D4509: [native] Merge conditionals in `InputStateContainer`
Attached
Detach File
Event Timeline
Log In to Comment