diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2022-03-24 11:19:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-24 11:19:41 +0100 |
commit | 5436b014f44699093dd75d0ecbf26c434feecaa0 (patch) | |
tree | b100f2a43aefdb01630d6af775b348286344e836 /synapse/config | |
parent | Refuse to start if DB has an unsafe locale (#12262) (diff) | |
download | synapse-5436b014f44699093dd75d0ecbf26c434feecaa0.tar.xz |
Optionally include account validity in MSC3720 account status responses (#12266)
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/server.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py index 49cd0a4f19..38de4b8000 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py @@ -676,6 +676,10 @@ class ServerConfig(Config): ): raise ConfigError("'custom_template_directory' must be a string") + self.use_account_validity_in_account_status: bool = ( + config.get("use_account_validity_in_account_status") or False + ) + def has_tls_listener(self) -> bool: return any(listener.tls for listener in self.listeners) |