Page MenuHomePhabricator

D4509.diff
No OneTemporary

D4509.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
@@ -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

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)

Event Timeline