1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-04 11:51:45 +03:00

Key requests have an object wrapper

This commit is contained in:
J. Ryan Stinnett
2019-12-05 16:11:12 +00:00
parent 7601ce93d9
commit 2bdc16b4bd

View File

@@ -41,7 +41,7 @@ const secretStorageKeys = {};
// XXX: This flow should maybe be reworked to allow retries in case of typos,
// etc.
export const getSecretStorageKey = async keyInfos => {
export const getSecretStorageKey = async ({ keys: keyInfos }) => {
const keyInfoEntries = Object.entries(keyInfos);
if (keyInfoEntries.length > 1) {
throw new Error("Multiple storage key requests not implemented");