mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 21:28:40 +00:00
Deduplicate and cancel unneeded retry requests
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user