From d7edfd4efb1a9afa6c3fa89e613f18bf315614d5 Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 15 Oct 2014 18:10:27 -0700 Subject: [PATCH] Remove reference to undefined function --- js/crypto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/crypto.js b/js/crypto.js index 5e8472233f..7672ecf003 100644 --- a/js/crypto.js +++ b/js/crypto.js @@ -578,7 +578,7 @@ window.textsecure.crypto = function() { closeSession(open_session); // To be returned and saved later } else { // ...otherwise create an error that the UI will pick up and ask the user if they want to re-negotiate - throw textsecure.createTryAgainError("Received message with unknown identity key", "The identity of the sender has changed. This may be malicious, or the sender may have simply reinstalled TextSecure.", textsecure.replay.REPLAY_FUNCS.INIT_SESSION, [encodedNumber, getString(message.encode())]); + throw new Error("Received message with unknown identity key", "The identity of the sender has changed. This may be malicious, or the sender may have simply reinstalled TextSecure.", textsecure.replay.REPLAY_FUNCS.INIT_SESSION, [encodedNumber, getString(message.encode())]); } } return initSession(false, preKeyPair, signedPreKeyPair, encodedNumber, toArrayBuffer(message.identityKey), toArrayBuffer(message.baseKey), undefined)