don't check public key if there is none

pull/21833/head
Hubert Chathi 2020-03-16 17:31:06 -04:00
parent d470f9649d
commit 7b6a78bfb8
1 changed files with 3 additions and 0 deletions

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