feat: iadd drawer and editor navigation, and introduce letter management hooks

This commit is contained in:
ramvignesh-b
2026-04-13 00:56:58 +05:30
parent e328ce83f9
commit ad8a73bb47
13 changed files with 601 additions and 111 deletions
+7 -2
View File
@@ -5,7 +5,12 @@
export interface EncryptedLetter {
encrypted_content: string;
encrypted_dek: string;
sharingKey: string;
sharingKey?: string | null;
}
export interface EncryptedLetterMetadata {
encrypted_content: string;
encrypted_dek: string;
}
export interface EncryptedImageUpload {
@@ -199,7 +204,7 @@ export class CryptoUtils {
public async decryptMetadata(
encrypted_metadata: EncryptedLetter,
masterKey: CryptoKey,
): Promise<Record<string, string>> {
): Promise<Record<string, any>> {
const plainBytes = await this.openEnvelope(
encrypted_metadata.encrypted_content,
encrypted_metadata.encrypted_dek,