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