MessageReceiver: Be resilient to failed updateCache call

This commit is contained in:
Scott Nonnenberg 2021-03-17 10:53:36 -07:00 committed by Josh Perez
parent 4116bce899
commit 0eec84391f

View file

@ -1095,7 +1095,12 @@ class MessageReceiverInner extends EventTarget {
// Note: this is an out of band update; there are cases where the item in the
// cache has already been deleted by the time this runs. That's okay.
this.updateCache(envelope, plaintext);
try {
this.updateCache(envelope, plaintext);
} catch (error) {
const errorString = error && error.stack ? error.stack : error;
window.log.error(`decrypt: updateCache failed: ${errorString}`);
}
return plaintext;
})