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));