Test processing of unprocessed envelopes

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2025-02-04 20:02:59 -06:00 committed by GitHub
parent 2c01e6f4b8
commit 83b076b5c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 113 additions and 10 deletions

View file

@ -1144,6 +1144,11 @@ export default class MessageReceiver
return;
}
// Force save of unprocessed envelopes for testing
if (window.SignalCI?.forceUnprocessed) {
return;
}
// Now, queue and process decrypted envelopes. We drop the promise so that the next
// decryptAndCacheBatch batch does not have to wait for the decrypted envelopes to be
// processed, which can be an asynchronous blocking operation