1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

More comment tweaks to cross-signing keys

This commit is contained in:
J. Ryan Stinnett
2019-11-27 15:51:00 +00:00
parent 49448fafaa
commit 5b767ae948

View File

@@ -407,7 +407,8 @@ Crypto.prototype.resetCrossSigningKeys = async function(level, {
await this._crossSigningInfo.resetKeys(level);
await this._signObject(this._crossSigningInfo.keys.master);
// send keys to server first before caching locally (to ensure upload succeeds)
// send keys to server first before storing as trusted locally
// to ensure upload succeeds
const keys = {};
for (const [name, key] of Object.entries(this._crossSigningInfo.keys)) {
keys[name + "_key"] = key;