Changeset View
Changeset View
Standalone View
Standalone View
lib/types/messages/media.js
Show All 20 Lines | export type MediaMessageInfo = { | ||||
type: 15, | type: 15, | ||||
id?: string, // null if local copy without ID yet | id?: string, // null if local copy without ID yet | ||||
localID?: string, // for optimistic creations | localID?: string, // for optimistic creations | ||||
threadID: string, | threadID: string, | ||||
creator: RelativeUserInfo, | creator: RelativeUserInfo, | ||||
time: number, // millisecond timestamp | time: number, // millisecond timestamp | ||||
media: $ReadOnlyArray<Media>, | media: $ReadOnlyArray<Media>, | ||||
}; | }; | ||||
export type MediaMessageServerDBContent = | |||||
| { | |||||
+type: 'photo', | |||||
+uploadID: string, | |||||
} | |||||
| { | |||||
+type: 'video', | |||||
+uploadID: string, | |||||
+thumbnailUploadID: string, | |||||
}; |