OutgoingMessage: Provide proper timestamp for replayability

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-06-23 15:43:56 -07:00
parent 5d1150e5bc
commit 224140c911
2 changed files with 2 additions and 2 deletions

View file

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

View file

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