summary refs log tree commit diff
path: root/synapse/config/server.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2022-03-24 11:19:41 +0100
committerGitHub <noreply@github.com>2022-03-24 11:19:41 +0100
commit5436b014f44699093dd75d0ecbf26c434feecaa0 (patch)
treeb100f2a43aefdb01630d6af775b348286344e836 /synapse/config/server.py
parentRefuse to start if DB has an unsafe locale (#12262) (diff)
downloadsynapse-5436b014f44699093dd75d0ecbf26c434feecaa0.tar.xz
Optionally include account validity in MSC3720 account status responses (#12266)
Diffstat (limited to 'synapse/config/server.py')
-rw-r--r--synapse/config/server.py4
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)