You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Fix check for private keys
This check for new keys was always true, instead of checking whether something was added.
This commit is contained in:
@@ -400,7 +400,7 @@ Crypto.prototype.bootstrapSecretStorage = async function({
|
|||||||
// own key first.
|
// own key first.
|
||||||
// XXX: We need to think about how to re-do these steps if they fail.
|
// XXX: We need to think about how to re-do these steps if they fail.
|
||||||
// See also https://github.com/vector-im/riot-web/issues/11635
|
// See also https://github.com/vector-im/riot-web/issues/11635
|
||||||
if (crossSigningPrivateKeys) {
|
if (Object.keys(crossSigningPrivateKeys).length) {
|
||||||
logger.log("Storing cross-signing private keys in secret storage");
|
logger.log("Storing cross-signing private keys in secret storage");
|
||||||
// SSSS expects its keys to be signed by cross-signing master key.
|
// SSSS expects its keys to be signed by cross-signing master key.
|
||||||
// Since we have just reset cross-signing keys, we need to re-sign the
|
// Since we have just reset cross-signing keys, we need to re-sign the
|
||||||
|
|||||||
Reference in New Issue
Block a user