Store plaintext hash with newly sent or received attachments
This commit is contained in:
parent
48245eeea6
commit
b7ab1d7207
7 changed files with 70 additions and 19 deletions
|
@ -46,6 +46,7 @@ export type AttachmentType = {
|
|||
contentType: MIME.MIMEType;
|
||||
digest?: string;
|
||||
fileName?: string;
|
||||
plaintextHash?: string;
|
||||
uploadTimestamp?: number;
|
||||
/** Not included in protobuf, needs to be pulled from flags */
|
||||
isVoiceMessage?: boolean;
|
||||
|
@ -94,6 +95,7 @@ export type UploadedAttachmentType = Proto.IAttachmentPointer &
|
|||
size: number;
|
||||
digest: Uint8Array;
|
||||
contentType: string;
|
||||
plaintextHash: string;
|
||||
}>;
|
||||
|
||||
export type AttachmentWithHydratedData = AttachmentType & {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue