Add config option for setting homeserver's default room version (#5223)
Replaces DEFAULT_ROOM_VERSION constant with a method that first checks the config, then returns a hardcoded value if the option is not present. That hardcoded value is now located in the server.py config file.
Showing
- changelog.d/5223.feature 1 addition, 0 deletionschangelog.d/5223.feature
- docs/sample_config.yaml 9 additions, 0 deletionsdocs/sample_config.yaml
- synapse/api/room_versions.py 0 additions, 4 deletionssynapse/api/room_versions.py
- synapse/config/server.py 32 additions, 0 deletionssynapse/config/server.py
- synapse/handlers/room.py 7 additions, 2 deletionssynapse/handlers/room.py
- synapse/rest/client/v2_alpha/capabilities.py 3 additions, 2 deletionssynapse/rest/client/v2_alpha/capabilities.py
- tests/rest/client/v2_alpha/test_capabilities.py 5 additions, 2 deletionstests/rest/client/v2_alpha/test_capabilities.py
Loading
Please register or sign in to comment