|
|
|
@ -163,8 +163,8 @@ MessageReceiver.prototype.extend({
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const promise = textsecure.crypto
|
|
|
|
const promise = Promise.resolve(request.body) //textsecure.crypto
|
|
|
|
.decryptWebsocketMessage(request.body, this.signalingKey)
|
|
|
|
//.decryptWebsocketMessage(request.body, this.signalingKey)
|
|
|
|
.then(plaintext => {
|
|
|
|
.then(plaintext => {
|
|
|
|
const envelope = textsecure.protobuf.Envelope.decode(plaintext);
|
|
|
|
const envelope = textsecure.protobuf.Envelope.decode(plaintext);
|
|
|
|
// After this point, decoding errors are not the server's
|
|
|
|
// After this point, decoding errors are not the server's
|
|
|
|
|