Request and handle PniIdentity sync message
This commit is contained in:
parent
5a107e1bc3
commit
a0ae7c1aa2
7 changed files with 245 additions and 74 deletions
|
@ -349,6 +349,20 @@ export class KeysEvent extends ConfirmableEvent {
|
|||
}
|
||||
}
|
||||
|
||||
export type PNIIdentityEventData = Readonly<{
|
||||
publicKey: Uint8Array;
|
||||
privateKey: Uint8Array;
|
||||
}>;
|
||||
|
||||
export class PNIIdentityEvent extends ConfirmableEvent {
|
||||
constructor(
|
||||
public readonly data: PNIIdentityEventData,
|
||||
confirm: ConfirmCallback
|
||||
) {
|
||||
super('pniIdentity', confirm);
|
||||
}
|
||||
}
|
||||
|
||||
export type StickerPackEventData = Readonly<{
|
||||
id?: string;
|
||||
key?: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue