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