Changeset View
Changeset View
Standalone View
Standalone View
native/input/input-state-container.react.js
Show First 20 Lines • Show All 728 Lines • ▼ Show 20 Lines | ) { | ||||
dimensions, | dimensions, | ||||
localMediaSelection: undefined, | localMediaSelection: undefined, | ||||
loop: uploadResult.mediaType === 'video' ? loop : undefined, | loop: uploadResult.mediaType === 'video' ? loop : undefined, | ||||
}, | }, | ||||
}; | }; | ||||
if (processedMedia.mediaType === 'video') { | if (processedMedia.mediaType === 'video') { | ||||
invariant(uploadThumbnailResult, 'uploadThumbnailResult exists'); | invariant(uploadThumbnailResult, 'uploadThumbnailResult exists'); | ||||
const { uri: thumbnailURI } = uploadThumbnailResult; | const { uri: thumbnailURI, id: thumbnailID } = uploadThumbnailResult; | ||||
updateMediaPayload = { | updateMediaPayload = { | ||||
...updateMediaPayload, | ...updateMediaPayload, | ||||
mediaUpdate: { | mediaUpdate: { | ||||
...updateMediaPayload.mediaUpdate, | ...updateMediaPayload.mediaUpdate, | ||||
thumbnailURI, | thumbnailURI, | ||||
thumbnailID, | |||||
}, | }, | ||||
}; | }; | ||||
} | } | ||||
// When we dispatch this action, it updates Redux and triggers the | // When we dispatch this action, it updates Redux and triggers the | ||||
// componentDidUpdate in this class. componentDidUpdate will handle | // componentDidUpdate in this class. componentDidUpdate will handle | ||||
// calling dispatchMultimediaMessageAction once all the uploads are | // calling dispatchMultimediaMessageAction once all the uploads are | ||||
// complete, and does not wait until this function concludes. | // complete, and does not wait until this function concludes. | ||||
▲ Show 20 Lines • Show All 665 Lines • Show Last 20 Lines |