Deduplicate and cancel unneeded retry requests
This commit is contained in:
parent
d1f130e542
commit
b68e731950
22 changed files with 473 additions and 161 deletions
|
@ -140,6 +140,21 @@ export class DeliveryEvent extends ConfirmableEvent {
|
|||
}
|
||||
}
|
||||
|
||||
export type SuccessfulDecryptEventData = Readonly<{
|
||||
senderDevice: number;
|
||||
senderAci: AciString;
|
||||
timestamp: number;
|
||||
}>;
|
||||
|
||||
export class SuccessfulDecryptEvent extends ConfirmableEvent {
|
||||
constructor(
|
||||
public readonly data: SuccessfulDecryptEventData,
|
||||
confirm: ConfirmCallback
|
||||
) {
|
||||
super('successful-decrypt', confirm);
|
||||
}
|
||||
}
|
||||
|
||||
export type DecryptionErrorEventData = Readonly<{
|
||||
cipherTextBytes?: Uint8Array;
|
||||
cipherTextType?: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue