MessageReceiver: Emit envelope event on queue for cached+decrypted items

This commit is contained in:
Scott Nonnenberg 2023-07-05 16:16:17 -07:00 committed by GitHub
parent 3bf8adf6e1
commit 8177a4e2b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 13 deletions

View file

@ -104,9 +104,17 @@ export class GroupSyncEvent extends Event {
}
}
export class EnvelopeEvent extends Event {
// Emitted right before we do full decrypt on a message, but after Sealed Sender unseal
export class EnvelopeUnsealedEvent extends Event {
constructor(public readonly envelope: ProcessedEnvelope) {
super('envelope');
super('envelopeUnsealed');
}
}
// Emitted when we queue previously-decrypted events from the cache
export class EnvelopeQueuedEvent extends Event {
constructor(public readonly envelope: ProcessedEnvelope) {
super('envelopeQueued');
}
}