Reduce log noise from prekey messages
// FREEBIE
This commit is contained in:
parent
7efdfc95ee
commit
2cea499736
2 changed files with 4 additions and 4 deletions
|
@ -38001,7 +38001,6 @@ MessageReceiver.prototype.extend({
|
||||||
return this.onDeliveryReceipt(envelope);
|
return this.onDeliveryReceipt(envelope);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('envelope from', envelope.source + '.' + envelope.sourceDevice, envelope.timestamp.toNumber());
|
|
||||||
if (envelope.content) {
|
if (envelope.content) {
|
||||||
return this.handleContentMessage(envelope);
|
return this.handleContentMessage(envelope);
|
||||||
} else if (envelope.legacyMessage) {
|
} else if (envelope.legacyMessage) {
|
||||||
|
@ -38044,10 +38043,11 @@ MessageReceiver.prototype.extend({
|
||||||
var sessionCipher = new libsignal.SessionCipher(textsecure.storage.protocol, address);
|
var sessionCipher = new libsignal.SessionCipher(textsecure.storage.protocol, address);
|
||||||
switch(envelope.type) {
|
switch(envelope.type) {
|
||||||
case textsecure.protobuf.Envelope.Type.CIPHERTEXT:
|
case textsecure.protobuf.Envelope.Type.CIPHERTEXT:
|
||||||
|
console.log('message from', envelope.source + '.' + envelope.sourceDevice, envelope.timestamp.toNumber());
|
||||||
promise = sessionCipher.decryptWhisperMessage(ciphertext).then(this.unpad);
|
promise = sessionCipher.decryptWhisperMessage(ciphertext).then(this.unpad);
|
||||||
break;
|
break;
|
||||||
case textsecure.protobuf.Envelope.Type.PREKEY_BUNDLE:
|
case textsecure.protobuf.Envelope.Type.PREKEY_BUNDLE:
|
||||||
console.log('prekey whisper message');
|
console.log('prekey message from', envelope.source + '.' + envelope.sourceDevice, envelope.timestamp.toNumber());
|
||||||
promise = this.decryptPreKeyWhisperMessage(ciphertext, sessionCipher, address);
|
promise = this.decryptPreKeyWhisperMessage(ciphertext, sessionCipher, address);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -89,7 +89,6 @@ MessageReceiver.prototype.extend({
|
||||||
return this.onDeliveryReceipt(envelope);
|
return this.onDeliveryReceipt(envelope);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('envelope from', envelope.source + '.' + envelope.sourceDevice, envelope.timestamp.toNumber());
|
|
||||||
if (envelope.content) {
|
if (envelope.content) {
|
||||||
return this.handleContentMessage(envelope);
|
return this.handleContentMessage(envelope);
|
||||||
} else if (envelope.legacyMessage) {
|
} else if (envelope.legacyMessage) {
|
||||||
|
@ -132,10 +131,11 @@ MessageReceiver.prototype.extend({
|
||||||
var sessionCipher = new libsignal.SessionCipher(textsecure.storage.protocol, address);
|
var sessionCipher = new libsignal.SessionCipher(textsecure.storage.protocol, address);
|
||||||
switch(envelope.type) {
|
switch(envelope.type) {
|
||||||
case textsecure.protobuf.Envelope.Type.CIPHERTEXT:
|
case textsecure.protobuf.Envelope.Type.CIPHERTEXT:
|
||||||
|
console.log('message from', envelope.source + '.' + envelope.sourceDevice, envelope.timestamp.toNumber());
|
||||||
promise = sessionCipher.decryptWhisperMessage(ciphertext).then(this.unpad);
|
promise = sessionCipher.decryptWhisperMessage(ciphertext).then(this.unpad);
|
||||||
break;
|
break;
|
||||||
case textsecure.protobuf.Envelope.Type.PREKEY_BUNDLE:
|
case textsecure.protobuf.Envelope.Type.PREKEY_BUNDLE:
|
||||||
console.log('prekey whisper message');
|
console.log('prekey message from', envelope.source + '.' + envelope.sourceDevice, envelope.timestamp.toNumber());
|
||||||
promise = this.decryptPreKeyWhisperMessage(ciphertext, sessionCipher, address);
|
promise = this.decryptPreKeyWhisperMessage(ciphertext, sessionCipher, address);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue