Skip to Content

VaultAttachmentCache

Defined in: src/lib/chatStore/vaultAttachments.ts:64 

Device-side store for decrypted attachment bytes, keyed by vault attachment id.

Methods

delete()

delete(attachmentId: string): Promise<void>

Defined in: src/lib/chatStore/vaultAttachments.ts:67 

Parameters

ParameterType

attachmentId

string

Returns

Promise<void>


get()

get(attachmentId: string): Promise<Uint8Array<ArrayBufferLike> | null>

Defined in: src/lib/chatStore/vaultAttachments.ts:65 

Parameters

ParameterType

attachmentId

string

Returns

Promise<Uint8Array<ArrayBufferLike> | null>


set()

set(attachmentId: string, bytes: Uint8Array): Promise<void>

Defined in: src/lib/chatStore/vaultAttachments.ts:66 

Parameters

ParameterType

attachmentId

string

bytes

Uint8Array

Returns

Promise<void>

Last updated on