Attachments: support for incrementalMac and chunkSize
This commit is contained in:
parent
dbf057856f
commit
b51a0e0298
19 changed files with 322 additions and 69 deletions
|
@ -130,6 +130,7 @@ export type AddressableAttachmentType = Readonly<{
|
|||
path: string;
|
||||
localKey?: string;
|
||||
size?: number;
|
||||
contentType: MIME.MIMEType;
|
||||
|
||||
// In-memory data, for outgoing attachments that are not saved to disk.
|
||||
data?: Uint8Array;
|
||||
|
|
|
@ -48,3 +48,6 @@ export const isAudio = (value: string): value is MIMEType =>
|
|||
Boolean(value) && value.startsWith('audio/') && !value.endsWith('aiff');
|
||||
export const isLongMessage = (value: unknown): value is MIMEType =>
|
||||
value === LONG_MESSAGE;
|
||||
export const supportsIncrementalMac = (value: unknown): boolean => {
|
||||
return value === VIDEO_MP4;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue