Fix key change errors while retrying key change errors

This commit is contained in:
lilia 2017-02-21 15:00:24 -08:00
parent e1662f8537
commit 280f7a74b1
2 changed files with 4 additions and 2 deletions

View file

@ -38358,9 +38358,10 @@ MessageReceiver.prototype.extend({
if (e.message === 'Unknown identity key') { if (e.message === 'Unknown identity key') {
// create an error that the UI will pick up and ask the // create an error that the UI will pick up and ask the
// user if they want to re-negotiate // user if they want to re-negotiate
var buffer = dcodeIO.ByteBuffer.wrap(ciphertext);
throw new textsecure.IncomingIdentityKeyError( throw new textsecure.IncomingIdentityKeyError(
address.toString(), address.toString(),
ciphertext.toArrayBuffer(), buffer.toArrayBuffer(),
e.identityKey e.identityKey
); );
} }

View file

@ -157,9 +157,10 @@ MessageReceiver.prototype.extend({
if (e.message === 'Unknown identity key') { if (e.message === 'Unknown identity key') {
// create an error that the UI will pick up and ask the // create an error that the UI will pick up and ask the
// user if they want to re-negotiate // user if they want to re-negotiate
var buffer = dcodeIO.ByteBuffer.wrap(ciphertext);
throw new textsecure.IncomingIdentityKeyError( throw new textsecure.IncomingIdentityKeyError(
address.toString(), address.toString(),
ciphertext.toArrayBuffer(), buffer.toArrayBuffer(),
e.identityKey e.identityKey
); );
} }