From 224140c911196804fc47fe3504ca595320a6896d Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Fri, 23 Jun 2017 15:43:56 -0700 Subject: [PATCH] OutgoingMessage: Provide proper timestamp for replayability FREEBIE --- js/libtextsecure.js | 2 +- libtextsecure/outgoing_message.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index efe63fb7b..d42b07da5 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -38804,7 +38804,7 @@ OutgoingMessage.prototype = { } return builder.processPreKey(device).catch(function(error) { if (error.message === "Identity key changed") { - error.timestamp = device.timestamp; + error.timestamp = this.timestamp; error.originalMessage = this.message.toArrayBuffer(); error.identityKey = device.identityKey; } diff --git a/libtextsecure/outgoing_message.js b/libtextsecure/outgoing_message.js index a949bf435..a4b09b170 100644 --- a/libtextsecure/outgoing_message.js +++ b/libtextsecure/outgoing_message.js @@ -59,7 +59,7 @@ OutgoingMessage.prototype = { } return builder.processPreKey(device).catch(function(error) { if (error.message === "Identity key changed") { - error.timestamp = device.timestamp; + error.timestamp = this.timestamp; error.originalMessage = this.message.toArrayBuffer(); error.identityKey = device.identityKey; }