From 23fe8407ea6cd3afe491286e73c03edcc2c47dd5 Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Sun, 9 Feb 2020 20:12:07 -0800 Subject: [PATCH] fix typo --- libloki/crypto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libloki/crypto.js b/libloki/crypto.js index fbff7e079..6bcf9ce01 100644 --- a/libloki/crypto.js +++ b/libloki/crypto.js @@ -310,7 +310,7 @@ dcodeIO.ByteBuffer.fromBase64(serverPubKey64).toArrayBuffer() ); const { privKey } = await textsecure.storage.protocol.getIdentityKeyPair(); - if (!myKeyPair) { + if (!privKey) { window.log.warn("decryptToken, Can't load myKeyPair from storage"); // FIXME: not sure what I should give on failure // just going to stick with the same type of value