1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

use new method for checking key

This commit is contained in:
Hubert Chathi
2020-03-30 17:28:01 -04:00
parent 26bda5933b
commit bbb9a67ced

View File

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