diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 72592fb6e..63f7ba9b2 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -38837,11 +38837,17 @@ MessageReceiver.prototype.extend({ return this.handleDataMessage(envelope, content.dataMessage); } else if (content.nullMessage) { return this.handleNullMessage(envelope, content.nullMessage); + } else if (content.callMessage) { + return this.handleCallMessage(envelope, content.callMessage); } else { this.removeFromCache(envelope); throw new Error('Unsupported content message'); } }, + handleCallMessage: function(envelope, nullMessage) { + console.log('call message from', this.getEnvelopeId(envelope)); + this.removeFromCache(envelope); + }, handleNullMessage: function(envelope, nullMessage) { console.log('null message from', this.getEnvelopeId(envelope)); this.removeFromCache(envelope); diff --git a/libtextsecure/message_receiver.js b/libtextsecure/message_receiver.js index b8c66f2b0..de3026a01 100644 --- a/libtextsecure/message_receiver.js +++ b/libtextsecure/message_receiver.js @@ -483,11 +483,17 @@ MessageReceiver.prototype.extend({ return this.handleDataMessage(envelope, content.dataMessage); } else if (content.nullMessage) { return this.handleNullMessage(envelope, content.nullMessage); + } else if (content.callMessage) { + return this.handleCallMessage(envelope, content.callMessage); } else { this.removeFromCache(envelope); throw new Error('Unsupported content message'); } }, + handleCallMessage: function(envelope, nullMessage) { + console.log('call message from', this.getEnvelopeId(envelope)); + this.removeFromCache(envelope); + }, handleNullMessage: function(envelope, nullMessage) { console.log('null message from', this.getEnvelopeId(envelope)); this.removeFromCache(envelope);