don't check public key if there is none

This commit is contained in:
Hubert Chathi 2020-03-16 17:31:06 -04:00
parent d470f9649d
commit 7b6a78bfb8

View file

@ -96,6 +96,9 @@ async function getSecretStorageKey({ keys: keyInfos }, ssssItemName) {
{
keyInfo: info,
checkPrivateKey: async (input) => {
if (!info.pubkey) {
return true;
}
const key = await inputToKey(input);
return MatrixClientPeg.get().checkSecretStoragePrivateKey(key, info.pubkey);
},