Changeset View
Changeset View
Standalone View
Standalone View
native/input/input-state-container.react.js
Show First 20 Lines • Show All 1,150 Lines • ▼ Show 20 Lines | ) => { | ||||
this.startThreadCreation(threadInfo); | this.startThreadCreation(threadInfo); | ||||
if (threadIsPendingSidebar(threadInfo.id)) { | if (threadIsPendingSidebar(threadInfo.id)) { | ||||
this.pendingSidebarCreationMessageLocalIDs.add(localMessageID); | this.pendingSidebarCreationMessageLocalIDs.add(localMessageID); | ||||
} | } | ||||
const updateMedia = <T: Media>(media: $ReadOnlyArray<T>): T[] => | const updateMedia = <T: Media>(media: $ReadOnlyArray<T>): T[] => | ||||
media.map(singleMedia => { | media.map(singleMedia => { | ||||
invariant( | |||||
singleMedia.type === 'photo' || singleMedia.type === 'video', | |||||
'Retry selection must be unencrypted', | |||||
); | |||||
let updatedMedia = singleMedia; | let updatedMedia = singleMedia; | ||||
const oldMediaID = updatedMedia.id; | const oldMediaID = updatedMedia.id; | ||||
if ( | if ( | ||||
// not complete | // not complete | ||||
isLocalUploadID(oldMediaID) && | isLocalUploadID(oldMediaID) && | ||||
// not still ongoing | // not still ongoing | ||||
(!pendingUploads[oldMediaID] || pendingUploads[oldMediaID].failed) | (!pendingUploads[oldMediaID] || pendingUploads[oldMediaID].failed) | ||||
▲ Show 20 Lines • Show All 364 Lines • Show Last 20 Lines |