mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
renaming
This commit is contained in:
parent
17fc249fa8
commit
092547bfc8
@ -82,10 +82,10 @@ export async function writeKey(storage, key) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function readKey(txn) {
|
export async function readKey(txn) {
|
||||||
const key = await txn.session.get("ssssKey");
|
const keyData = await txn.session.get("ssssKey");
|
||||||
if (!key) {
|
if (!keyData) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const keyAccountData = await txn.accountData.get(`m.secret_storage.key.${key.id}`);
|
const keyAccountData = await txn.accountData.get(`m.secret_storage.key.${keyData.id}`);
|
||||||
return new Key(new KeyDescription(key.id, keyAccountData), key.binaryKey);
|
return new Key(new KeyDescription(keyData.id, keyAccountData), keyData.binaryKey);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user