vector-im-hydrogen-web/src/matrix/storage/common.js
2019-04-04 09:27:31 +02:00

7 lines
234 B
JavaScript

export const STORE_NAMES = Object.freeze(["session", "roomState", "roomSummary", "roomTimeline"]);
export const STORE_MAP = Object.freeze(STORE_NAMES.reduce((nameMap, name) => {
nameMap[name] = name;
return nameMap;
}, {}));