Fix key change errors while retrying key change errors

pull/749/head
lilia 8 years ago
parent e1662f8537
commit 280f7a74b1

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

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

Loading…
Cancel
Save