MessageReceiver: Add note about out-of-band updateCache calls

This commit is contained in:
Scott Nonnenberg 2019-09-18 11:44:32 -07:00
parent 344e7e5e76
commit a8a8d65e5b
2 changed files with 4 additions and 2 deletions

View file

@ -809,6 +809,8 @@ MessageReceiver.prototype.extend({
return null;
}
// 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).catch(error => {
window.log.error(
'decrypt failed to save decrypted message contents to cache:',

View file

@ -1244,7 +1244,7 @@
"rule": "jQuery-wrap(",
"path": "libtextsecure/message_receiver.js",
"line": " const buffer = dcodeIO.ByteBuffer.wrap(ciphertext);",
"lineNumber": 827,
"lineNumber": 829,
"reasonCategory": "falseMatch",
"updated": "2018-09-19T18:13:29.628Z"
},
@ -1252,7 +1252,7 @@
"rule": "jQuery-wrap(",
"path": "libtextsecure/message_receiver.js",
"line": " const buffer = dcodeIO.ByteBuffer.wrap(ciphertext);",
"lineNumber": 852,
"lineNumber": 854,
"reasonCategory": "falseMatch",
"updated": "2018-09-19T18:13:29.628Z"
},