Page MenuHomePhabricator

D7477.id25260.diff
No OneTemporary

D7477.id25260.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
@@ -721,13 +721,18 @@
userTime = Date.now() - start;
};
+ const onTranscodingProgress = (percent: number) => {
+ this.setProgress(localMessageID, localMediaID, 'transcoding', percent);
+ };
+
let processedMedia;
const processingStart = Date.now();
try {
- const processMediaReturn = processMedia(
- selection,
- this.mediaProcessConfig(localMessageID, localMediaID),
- );
+ const processMediaReturn = processMedia(selection, {
+ hasWiFi: this.props.hasWiFi,
+ finalFileHeaderCheck: this.props.staffCanSee,
+ onTranscodingProgress,
+ });
reportPromise = processMediaReturn.reportPromise;
const processResult = await processMediaReturn.resultPromise;
if (!processResult.success) {
@@ -1006,21 +1011,6 @@
return await onUploadFinished(mediaMissionResult);
}
- mediaProcessConfig(localMessageID: string, localID: string) {
- const { hasWiFi, staffCanSee } = this.props;
- const onTranscodingProgress = (percent: number) => {
- this.setProgress(localMessageID, localID, 'transcoding', percent);
- };
- if (staffCanSee) {
- return {
- hasWiFi,
- finalFileHeaderCheck: true,
- onTranscodingProgress,
- };
- }
- return { hasWiFi, onTranscodingProgress };
- }
-
setProgress(
localMessageID: string,
localUploadID: string,

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 5, 4:46 AM (14 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2614466
Default Alt Text
D7477.id25260.diff (1 KB)

Event Timeline