Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Fix running with an empty experimental features section. (matrix-org#…
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep authored and Fizzadar committed Aug 29, 2023
1 parent 2f43d63 commit f41381a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/15925.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a bug introduced in 1.86.0 where Synapse starting with an empty `experimental_features` configuration setting.
2 changes: 1 addition & 1 deletion synapse/config/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:

# 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)
)
Expand Down

0 comments on commit f41381a

Please sign in to comment.