diff --git a/js/debugLog.js b/js/debugLog.js index 5a84b312c727..1740e5447158 100644 --- a/js/debugLog.js +++ b/js/debugLog.js @@ -40,7 +40,7 @@ } }); - var MAX_MESSAGES = 5000; + var MAX_MESSAGES = 2000; var PHONE_REGEX = /\+\d{7,12}(\d{3})/g; var log = new DebugLog(); if (window.console) { diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 0ad65de17fce..08a17ed86249 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -38487,7 +38487,6 @@ MessageReceiver.prototype.extend({ }, addToCache: function(envelope, plaintext) { var id = this.getEnvelopeId(envelope); - console.log('addToCache', id); var data = { id: id, envelope: plaintext, @@ -38498,7 +38497,6 @@ MessageReceiver.prototype.extend({ }, updateCache: function(envelope, plaintext) { var id = this.getEnvelopeId(envelope); - console.log('updateCache', id); var data = { decrypted: plaintext }; @@ -38506,7 +38504,6 @@ MessageReceiver.prototype.extend({ }, removeFromCache: function(envelope) { var id = this.getEnvelopeId(envelope); - console.log('removeFromCache', id); return textsecure.storage.unprocessed.remove(id); }, queueDecryptedEnvelope: function(envelope, plaintext) { diff --git a/js/models/messages.js b/js/models/messages.js index 5b75dc1f181c..062f1d55d907 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -343,13 +343,10 @@ if (dataMessage.group) { conversationId = dataMessage.group.id; } - console.log('queuing handleDataMessage', message.idForLogging()); var conversation = ConversationController.get(conversationId); return conversation.queueJob(function() { return new Promise(function(resolve) { - console.log('starting handleDataMessage', message.idForLogging()); - var now = new Date().getTime(); var attributes = { type: 'private' }; if (dataMessage.group) { @@ -459,8 +456,6 @@ }); } - console.log('beginning saves in handleDataMessage', message.idForLogging()); - var handleError = function(error) { error = error && error.stack ? error.stack : error; console.log('handleDataMessage', message.idForLogging(), 'error:', error); @@ -492,8 +487,6 @@ conversation.notify(message); } - console.log('done with handleDataMessage', message.idForLogging()); - confirm(); return resolve(); } diff --git a/libtextsecure/message_receiver.js b/libtextsecure/message_receiver.js index 8b4269b44a48..d000fb88b098 100644 --- a/libtextsecure/message_receiver.js +++ b/libtextsecure/message_receiver.js @@ -236,7 +236,6 @@ MessageReceiver.prototype.extend({ }, addToCache: function(envelope, plaintext) { var id = this.getEnvelopeId(envelope); - console.log('addToCache', id); var data = { id: id, envelope: plaintext, @@ -247,7 +246,6 @@ MessageReceiver.prototype.extend({ }, updateCache: function(envelope, plaintext) { var id = this.getEnvelopeId(envelope); - console.log('updateCache', id); var data = { decrypted: plaintext }; @@ -255,7 +253,6 @@ MessageReceiver.prototype.extend({ }, removeFromCache: function(envelope) { var id = this.getEnvelopeId(envelope); - console.log('removeFromCache', id); return textsecure.storage.unprocessed.remove(id); }, queueDecryptedEnvelope: function(envelope, plaintext) {