From e81e253ccf402aa41b4d4721b720eaded200ae61 Mon Sep 17 00:00:00 2001 From: sachaaaaa Date: Thu, 4 Oct 2018 12:10:14 +1000 Subject: [PATCH] temporarily disable decryption and unpadding of incoming messages --- libtextsecure/message_receiver.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libtextsecure/message_receiver.js b/libtextsecure/message_receiver.js index 545cfcf25..1b5b90727 100644 --- a/libtextsecure/message_receiver.js +++ b/libtextsecure/message_receiver.js @@ -645,9 +645,9 @@ MessageReceiver.prototype.extend({ switch (envelope.type) { case textsecure.protobuf.Envelope.Type.CIPHERTEXT: window.log.info('message from', this.getEnvelopeId(envelope)); - promise = sessionCipher - .decryptWhisperMessage(ciphertext) - .then(this.unpad); + promise = Promise.resolve(ciphertext.toArrayBuffer())//;sessionCipher + //.decryptWhisperMessage(ciphertext) + //.then(this.unpad); break; case textsecure.protobuf.Envelope.Type.PREKEY_BUNDLE: window.log.info('prekey message from', this.getEnvelopeId(envelope));