Fix key change errors while retrying key change errors
This commit is contained in:
parent
e1662f8537
commit
280f7a74b1
2 changed files with 4 additions and 2 deletions
|
@ -38358,9 +38358,10 @@ MessageReceiver.prototype.extend({
|
|||
if (e.message === 'Unknown identity key') {
|
||||
// create an error that the UI will pick up and ask the
|
||||
// user if they want to re-negotiate
|
||||
var buffer = dcodeIO.ByteBuffer.wrap(ciphertext);
|
||||
throw new textsecure.IncomingIdentityKeyError(
|
||||
address.toString(),
|
||||
ciphertext.toArrayBuffer(),
|
||||
buffer.toArrayBuffer(),
|
||||
e.identityKey
|
||||
);
|
||||
}
|
||||
|
|
|
@ -157,9 +157,10 @@ MessageReceiver.prototype.extend({
|
|||
if (e.message === 'Unknown identity key') {
|
||||
// create an error that the UI will pick up and ask the
|
||||
// user if they want to re-negotiate
|
||||
var buffer = dcodeIO.ByteBuffer.wrap(ciphertext);
|
||||
throw new textsecure.IncomingIdentityKeyError(
|
||||
address.toString(),
|
||||
ciphertext.toArrayBuffer(),
|
||||
buffer.toArrayBuffer(),
|
||||
e.identityKey
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue