mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 21:04:59 -04:00
Optionally include account validity in MSC3720 account status responses (#12266)
This commit is contained in:
parent
e78d4f61fc
commit
5436b014f4
4 changed files with 73 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue