Changeset View
Changeset View
Standalone View
Standalone View
web/input/input-state-container.react.js
Show First 20 Lines • Show All 323 Lines • ▼ Show 20 Lines | for (const [messageID, assignedUploads] of newlyAssignedUploads) { | ||||
mediaType !== 'encrypted_photo' && | mediaType !== 'encrypted_photo' && | ||||
mediaType !== 'encrypted_video' | mediaType !== 'encrypted_video' | ||||
) { | ) { | ||||
return { | return { | ||||
id: serverID ? serverID : localID, | id: serverID ? serverID : localID, | ||||
uri, | uri, | ||||
type: 'photo', | type: 'photo', | ||||
dimensions: shimmedDimensions, | dimensions: shimmedDimensions, | ||||
thumbHash: null, | |||||
}; | }; | ||||
} | } | ||||
invariant( | invariant( | ||||
encryptionKey, | encryptionKey, | ||||
'encrypted media must have an encryption key', | 'encrypted media must have an encryption key', | ||||
); | ); | ||||
return { | return { | ||||
id: serverID ? serverID : localID, | id: serverID ? serverID : localID, | ||||
holder: uri, | holder: uri, | ||||
type: 'encrypted_photo', | type: 'encrypted_photo', | ||||
encryptionKey, | encryptionKey, | ||||
dimensions: shimmedDimensions, | dimensions: shimmedDimensions, | ||||
thumbHash: null, | |||||
}; | }; | ||||
}, | }, | ||||
); | ); | ||||
const messageInfo = createMediaMessageInfo( | const messageInfo = createMediaMessageInfo( | ||||
{ | { | ||||
localID: messageID, | localID: messageID, | ||||
threadID, | threadID, | ||||
creatorID, | creatorID, | ||||
▲ Show 20 Lines • Show All 1,393 Lines • Show Last 20 Lines |