matrix-org / matrix-react-sdk-module-api

API surface for writing Modules for the react-sdk
Apache License 2.0
3 stars 8 forks source link

Add support for retrieving config values for modules #5

Closed turt2live closed 2 years ago

turt2live commented 2 years ago

This is needed for an example module to conditionally enable itself for end-to-end tests, and is useful in general to be able to get different config values for a given module.

We deliberately do not support the module retrieving top level config values to break assumptions that those values are stable. If the module specifies a namespace of "" then it effectively means config[""][key].