Slim down some things

This commit is contained in:
Jon Staab
2024-10-07 13:26:58 -07:00
parent eb2b078a39
commit 944ee61b88
11 changed files with 75 additions and 85 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export type DecryptedEvent = TrustedEvent & {
plaintext: Partial<EventContent>
}
export const asDecryptedEvent = (event: TrustedEvent, plaintext: Partial<EventContent>) =>
export const asDecryptedEvent = (event: TrustedEvent, plaintext: Partial<EventContent> = {}) =>
({...event, plaintext}) as DecryptedEvent
export class Encryptable {