|
|
|
@ -81,7 +81,6 @@ MessageReceiver.prototype.extend({
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
var receivedAt = Date.now();
|
|
|
|
|
|
|
|
|
|
this.incoming.push(textsecure.crypto.decryptWebsocketMessage(request.body, this.signalingKey).then(function(plaintext) {
|
|
|
|
|
var envelope = textsecure.protobuf.Envelope.decode(plaintext);
|
|
|
|
@ -93,8 +92,6 @@ MessageReceiver.prototype.extend({
|
|
|
|
|
return request.respond(200, 'OK');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
envelope.receivedAt = receivedAt;
|
|
|
|
|
|
|
|
|
|
return this.addToCache(envelope, plaintext).then(function() {
|
|
|
|
|
request.respond(200, 'OK');
|
|
|
|
|
this.queueEnvelope(envelope);
|
|
|
|
|