Fix running with an empty experimental features section. (#15925)
This commit is contained in:
parent
36c6b92bfc
commit
5bdf01fccd
|
@ -0,0 +1 @@
|
|||
Fix a bug introduced in 1.86.0 where Synapse starting with an empty `experimental_features` configuration setting.
|
|
@ -31,7 +31,7 @@ class AuthConfig(Config):
|
|||
|
||||
# The default value of password_config.enabled is True, unless msc3861 is enabled.
|
||||
msc3861_enabled = (
|
||||
config.get("experimental_features", {})
|
||||
(config.get("experimental_features") or {})
|
||||
.get("msc3861", {})
|
||||
.get("enabled", False)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue