OutgoingMessage: Provide proper timestamp for replayability
FREEBIE
This commit is contained in:
parent
5d1150e5bc
commit
224140c911
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue