index : matrix-js-sdk

My fork of matrix-js-sdk

diff options
context:
space:
mode:
authorBruno Windels <[email protected]>2020-06-17 15:29:21 +0200
committerBruno Windels <[email protected]>2020-06-17 15:29:21 +0200
commitc11796af4bb0849bf037caeafefc73630ff24576 (patch)
tree3cee6d5d158cb51899973cdaff964c0b94dc4294
parent8591815d663032708c46ecb0da39a7149d67c56a (diff)
downloadmatrix-js-sdk-c11796af4bb0849bf037caeafefc73630ff24576.tar.gz
don't fix old key when we're force-creating a new one
-rw-r--r--src/crypto/index.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/crypto/index.js b/src/crypto/index.js
index 4985ba24..aab62d7f 100644
--- a/src/crypto/index.js
+++ b/src/crypto/index.js
@@ -585,10 +585,6 @@ Crypto.prototype.bootstrapSecretStorage = async function({
const { keyInfo, privateKey } = await createSecretStorageKey();
newKeyId = await createSSSS(keyInfo, privateKey);
}
-
- if (oldKeyInfo && oldKeyInfo.algorithm === SECRET_STORAGE_ALGORITHM_V1_AES) {
- await ensureCanCheckPassphrase(oldKeyId, oldKeyInfo);
- }
} else if (!inStorage && keyBackupInfo) {
// we have an existing backup, but no SSSS