From 4f3b036feeeef12f53b3c466240e6aa0037f3386 Mon Sep 17 00:00:00 2001 From: sachaaaaa Date: Thu, 16 Aug 2018 15:08:19 +1000 Subject: [PATCH] Skip decrypting messages coming from websocket (no client-server encryption) --- libtextsecure/message_receiver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtextsecure/message_receiver.js b/libtextsecure/message_receiver.js index 897dd6eaa..06e731a72 100644 --- a/libtextsecure/message_receiver.js +++ b/libtextsecure/message_receiver.js @@ -163,8 +163,8 @@ MessageReceiver.prototype.extend({ return; } - const promise = textsecure.crypto - .decryptWebsocketMessage(request.body, this.signalingKey) + const promise = Promise.resolve(request.body) //textsecure.crypto + //.decryptWebsocketMessage(request.body, this.signalingKey) .then(plaintext => { const envelope = textsecure.protobuf.Envelope.decode(plaintext); // After this point, decoding errors are not the server's