Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
In-memory keys need an object
Browse files Browse the repository at this point in the history
  • Loading branch information
jryans committed Nov 20, 2019
1 parent 9dea848 commit c568c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MatrixClientPeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class MatrixClientPeg {
if (SettingsStore.isFeatureEnabled("feature_cross_signing")) {
// TODO: Cross-signing keys are temporarily in memory only. A
// separate task in the cross-signing project will build from here.
const keys = [];
const keys = {};
opts.cryptoCallbacks = {
getCrossSigningKey: k => keys[k],
saveCrossSigningKeys: newKeys => Object.assign(keys, newKeys),
Expand Down

0 comments on commit c568c15

Please sign in to comment.