index : matrix-js-sdk

My fork of matrix-js-sdk

diff options
context:
space:
mode:
authorBruno Windels <[email protected]>2020-06-17 15:26:30 +0200
committerBruno Windels <[email protected]>2020-06-17 15:26:30 +0200
commit8591815d663032708c46ecb0da39a7149d67c56a (patch)
treefdd867961e3c7077527826d3fce62e79f71ac108
parentb82870adb2e79748401f7268d1f99ff639c84737 (diff)
downloadmatrix-js-sdk-8591815d663032708c46ecb0da39a7149d67c56a.tar.gz
add comment
-rw-r--r--src/crypto/index.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crypto/index.js b/src/crypto/index.js
index 5e4e7e9f..4985ba24 100644
--- a/src/crypto/index.js
+++ b/src/crypto/index.js
@@ -637,8 +637,14 @@ Crypto.prototype.bootstrapSecretStorage = async function({
// keys should be trusted
logger.log("Cross-signing private keys found in secret storage");
+ // TODO: take this use case out of bootstrapping
// fetch the private keys and set up our local copy of the keys for
// use
+ //
+ // so if some other device resets the cross-signing keys,
+ // we mark them as untrusted from _onDeviceListUserCrossSigningUpdated
+ // you can either fix this by hitting the verify this session which (might?) call this method,
+ // or the reset button in the settings
await this.checkOwnCrossSigningTrust();
if (oldKeyInfo && oldKeyInfo.algorithm === SECRET_STORAGE_ALGORITHM_V1_AES) {