Slim down some things
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user