In-memory keys need an object
parent
9dea848927
commit
c568c15186
|
@ -223,7 +223,7 @@ class MatrixClientPeg {
|
||||||
if (SettingsStore.isFeatureEnabled("feature_cross_signing")) {
|
if (SettingsStore.isFeatureEnabled("feature_cross_signing")) {
|
||||||
// TODO: Cross-signing keys are temporarily in memory only. A
|
// TODO: Cross-signing keys are temporarily in memory only. A
|
||||||
// separate task in the cross-signing project will build from here.
|
// separate task in the cross-signing project will build from here.
|
||||||
const keys = [];
|
const keys = {};
|
||||||
opts.cryptoCallbacks = {
|
opts.cryptoCallbacks = {
|
||||||
getCrossSigningKey: k => keys[k],
|
getCrossSigningKey: k => keys[k],
|
||||||
saveCrossSigningKeys: newKeys => Object.assign(keys, newKeys),
|
saveCrossSigningKeys: newKeys => Object.assign(keys, newKeys),
|
||||||
|
|
Loading…
Reference in New Issue