Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3512370
D11946.id39936.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11946.id39936.diff
View Options
diff --git a/lib/media/media-utils.js b/lib/media/media-utils.js
--- a/lib/media/media-utils.js
+++ b/lib/media/media-utils.js
@@ -3,7 +3,7 @@
import invariant from 'invariant';
import {
- FUTURE_CODE_VERSION,
+ NEXT_CODE_VERSION,
hasMinCodeVersion,
} from '../shared/version-utils.js';
import type { PlatformDetails } from '../types/device-types.js';
@@ -62,7 +62,7 @@
);
}
-/** Clients before FUTURE_CODE_VERSION understand only `holder`
+/** Clients before NEXT_CODE_VERSION understand only `holder`
* and `thumbnailHolder` fields, while newer clients understand `blobURI`
* and `thumbnailBlobURI`. This function formats the multimedia message
* to be understandable by clients based on their version
@@ -72,7 +72,7 @@
platformDetails: ?PlatformDetails,
): RawMediaMessageInfo {
const isBlobURISupported = hasMinCodeVersion(platformDetails, {
- native: FUTURE_CODE_VERSION,
+ native: NEXT_CODE_VERSION,
});
const media = rawMessageInfo.media.map(singleMedia => {
if (singleMedia.type === 'photo' || singleMedia.type === 'video') {
diff --git a/lib/types/media-types.js b/lib/types/media-types.js
--- a/lib/types/media-types.js
+++ b/lib/types/media-types.js
@@ -721,7 +721,7 @@
+dimensions: Dimensions,
+thumbHash: ?string,
};
-// old message formats (native codeVersion < FUTURE_CODE_VERSION) used holder
+// old message formats (native codeVersion < NEXT_CODE_VERSION) used holder
// new format uses blobURI. Effectively, they both mean blob URI
export type EncryptedImage =
| { ...EncryptedImageCommons, +holder: string }
@@ -775,7 +775,7 @@
+thumbnailEncryptionKey: string,
+thumbnailThumbHash: ?string,
};
-// old message formats (native codeVersion < FUTURE_CODE_VERSION) used holder
+// old message formats (native codeVersion < NEXT_CODE_VERSION) used holder
// new format uses blobURI. Effectively, they both mean blob URI
export type EncryptedVideo =
| { ...EncryptedVideoCommons, +holder: string, +thumbnailHolder: string }
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 7:31 PM (3 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2692249
Default Alt Text
D11946.id39936.diff (1 KB)
Attached To
Mode
D11946: Enable multimedia blobURI for NEXT_CODE_VERSION
Attached
Detach File
Event Timeline
Log In to Comment