mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-07 21:26:13 +02:00
use new method for checking key
This commit is contained in:
parent
26bda5933b
commit
bbb9a67ced
@ -96,11 +96,8 @@ 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);
|
||||
return await MatrixClientPeg.get().checkSecretStorageKey(key, info);
|
||||
},
|
||||
},
|
||||
/* className= */ null,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user