You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Key requests have an object wrapper
This commit is contained in:
@@ -41,7 +41,7 @@ const secretStorageKeys = {};
|
|||||||
|
|
||||||
// XXX: This flow should maybe be reworked to allow retries in case of typos,
|
// XXX: This flow should maybe be reworked to allow retries in case of typos,
|
||||||
// etc.
|
// etc.
|
||||||
export const getSecretStorageKey = async keyInfos => {
|
export const getSecretStorageKey = async ({ keys: keyInfos }) => {
|
||||||
const keyInfoEntries = Object.entries(keyInfos);
|
const keyInfoEntries = Object.entries(keyInfos);
|
||||||
if (keyInfoEntries.length > 1) {
|
if (keyInfoEntries.length > 1) {
|
||||||
throw new Error("Multiple storage key requests not implemented");
|
throw new Error("Multiple storage key requests not implemented");
|
||||||
|
|||||||
Reference in New Issue
Block a user