Reduce log noise from delivery receipts
Stop logging envelope messages on receipts since we log the same info as a receipt in background.js. // FREEBIE
This commit is contained in:
parent
0302960ab7
commit
c39d6687e5
2 changed files with 8 additions and 4 deletions
|
@ -37997,10 +37997,12 @@ MessageReceiver.prototype.extend({
|
|||
this.pending = this.pending.then(handleEnvelope, handleEnvelope);
|
||||
},
|
||||
handleEnvelope: function(envelope) {
|
||||
console.log('envelope from', envelope.source + '.' + envelope.sourceDevice, envelope.timestamp.toNumber());
|
||||
if (envelope.type === textsecure.protobuf.Envelope.Type.RECEIPT) {
|
||||
return this.onDeliveryReceipt(envelope);
|
||||
} else if (envelope.content) {
|
||||
}
|
||||
|
||||
console.log('envelope from', envelope.source + '.' + envelope.sourceDevice, envelope.timestamp.toNumber());
|
||||
if (envelope.content) {
|
||||
return this.handleContentMessage(envelope);
|
||||
} else if (envelope.legacyMessage) {
|
||||
return this.handleLegacyMessage(envelope);
|
||||
|
|
|
@ -85,10 +85,12 @@ MessageReceiver.prototype.extend({
|
|||
this.pending = this.pending.then(handleEnvelope, handleEnvelope);
|
||||
},
|
||||
handleEnvelope: function(envelope) {
|
||||
console.log('envelope from', envelope.source + '.' + envelope.sourceDevice, envelope.timestamp.toNumber());
|
||||
if (envelope.type === textsecure.protobuf.Envelope.Type.RECEIPT) {
|
||||
return this.onDeliveryReceipt(envelope);
|
||||
} else if (envelope.content) {
|
||||
}
|
||||
|
||||
console.log('envelope from', envelope.source + '.' + envelope.sourceDevice, envelope.timestamp.toNumber());
|
||||
if (envelope.content) {
|
||||
return this.handleContentMessage(envelope);
|
||||
} else if (envelope.legacyMessage) {
|
||||
return this.handleLegacyMessage(envelope);
|
||||
|
|
Loading…
Reference in a new issue