MessageReceiver: Log errors with proper message id

This commit is contained in:
Scott Nonnenberg 2019-02-11 14:53:57 -08:00
parent 462fa712bc
commit 021e807180

View file

@ -555,7 +555,7 @@ MessageReceiver.prototype.extend({
return textsecure.storage.unprocessed.remove(id);
},
queueDecryptedEnvelope(envelope, plaintext) {
const { id } = envelope;
const id = this.getEnvelopeId(envelope);
window.log.info('queueing decrypted envelope', id);
const task = this.handleDecryptedEnvelope.bind(this, envelope, plaintext);