MessageReceiver: Be resilient to failed updateCache call
This commit is contained in:
parent
4116bce899
commit
0eec84391f
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue