1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00
This commit is contained in:
Hubert Chathi
2021-06-03 18:52:06 -04:00
parent e22ecc6b6d
commit ca85dfc6ff
2 changed files with 15 additions and 17 deletions

View File

@@ -2260,7 +2260,6 @@ MatrixClient.prototype._restoreKeyBackup = async function(
source: "backup",
});
// await this._crypto.setTrustedBackupPubKey(backupPubKey);
await this.checkKeyBackup();
return { total: totalKeyCount, imported: keys.length };

View File

@@ -573,7 +573,6 @@ export class Curve25519 implements BackupAlgorithm {
const derivation = await keyFromPassphrase(key);
authData.private_key_salt = derivation.salt;
authData.private_key_iterations = derivation.iterations;
// FIXME: algorithm?
authData.public_key = decryption.init_with_private_key(derivation.key);
}
const publicKey = new global.Olm.PkEncryption();