Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33300044
D7565.1768769880.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D7565.1768769880.diff
View Options
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
@@ -12,51 +12,6 @@
export type EncryptedMediaType = 'encrypted_photo' | 'encrypted_video';
-export type Image = {
- +id: string,
- +uri: string,
- +type: 'photo',
- +dimensions: Dimensions,
- // stored on native only during creation in case retry needed after state lost
- +localMediaSelection?: NativeMediaSelection,
-};
-
-export type EncryptedImage = {
- +id: string,
- // a media URI for keyserver uploads / blob holder for Blob service uploads
- +holder: string,
- +encryptionKey: string,
- +type: 'encrypted_photo',
- +dimensions: Dimensions,
-};
-
-export type Video = {
- +id: string,
- +uri: string,
- +type: 'video',
- +dimensions: Dimensions,
- +loop?: boolean,
- +thumbnailID: string,
- +thumbnailURI: string,
- // stored on native only during creation in case retry needed after state lost
- +localMediaSelection?: NativeMediaSelection,
-};
-
-export type EncryptedVideo = {
- +id: string,
- // a media URI for keyserver uploads / blob holder for Blob service uploads
- +holder: string,
- +encryptionKey: string,
- +type: 'encrypted_video',
- +dimensions: Dimensions,
- +loop?: boolean,
- +thumbnailID: string,
- +thumbnailHolder: string,
- +thumbnailEncryptionKey: string,
-};
-
-export type Media = Image | Video | EncryptedImage | EncryptedVideo;
-
export type AvatarMediaInfo = {
+type: 'photo',
+uri: string,
@@ -595,3 +550,48 @@
+userTime: number,
+totalTime: number,
};
+
+export type Image = {
+ +id: string,
+ +uri: string,
+ +type: 'photo',
+ +dimensions: Dimensions,
+ // stored on native only during creation in case retry needed after state lost
+ +localMediaSelection?: NativeMediaSelection,
+};
+
+export type EncryptedImage = {
+ +id: string,
+ // a media URI for keyserver uploads / blob holder for Blob service uploads
+ +holder: string,
+ +encryptionKey: string,
+ +type: 'encrypted_photo',
+ +dimensions: Dimensions,
+};
+
+export type Video = {
+ +id: string,
+ +uri: string,
+ +type: 'video',
+ +dimensions: Dimensions,
+ +loop?: boolean,
+ +thumbnailID: string,
+ +thumbnailURI: string,
+ // stored on native only during creation in case retry needed after state lost
+ +localMediaSelection?: NativeMediaSelection,
+};
+
+export type EncryptedVideo = {
+ +id: string,
+ // a media URI for keyserver uploads / blob holder for Blob service uploads
+ +holder: string,
+ +encryptionKey: string,
+ +type: 'encrypted_video',
+ +dimensions: Dimensions,
+ +loop?: boolean,
+ +thumbnailID: string,
+ +thumbnailHolder: string,
+ +thumbnailEncryptionKey: string,
+};
+
+export type Media = Image | Video | EncryptedImage | EncryptedVideo;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 18, 8:58 PM (9 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5953057
Default Alt Text
D7565.1768769880.diff (2 KB)
Attached To
Mode
D7565: [lib] Reorder types in `media-types.js`
Attached
Detach File
Event Timeline
Log In to Comment