summary refs log tree commit diff
path: root/synapse/config/federation.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2021-05-12 12:57:55 +0100
committerRichard van der Hoff <richard@matrix.org>2021-05-12 12:57:55 +0100
commitb0b8110acd7275285e3fb5dc68de5eb684a0cabe (patch)
treeb9b821988bdcb072fc90750fcec9ec2e3d46c9db /synapse/config/federation.py
parentMerge branch 'release-v1.33.2' into matrix-org-hotfixes (diff)
parentTests for to-device messages (#9965) (diff)
downloadsynapse-b0b8110acd7275285e3fb5dc68de5eb684a0cabe.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/config/federation.py')
-rw-r--r--synapse/config/federation.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/synapse/config/federation.py b/synapse/config/federation.py

index 090ba047fa..cdd7a1ef05 100644 --- a/synapse/config/federation.py +++ b/synapse/config/federation.py
@@ -44,6 +44,10 @@ class FederationConfig(Config): "allow_profile_lookup_over_federation", True ) + self.allow_device_name_lookup_over_federation = config.get( + "allow_device_name_lookup_over_federation", True + ) + def generate_config_section(self, config_dir_path, server_name, **kwargs): return """\ ## Federation ## @@ -75,6 +79,12 @@ class FederationConfig(Config): # on this homeserver. Defaults to 'true'. # #allow_profile_lookup_over_federation: false + + # Uncomment to disable device display name lookup over federation. By default, the + # Federation API allows other homeservers to obtain device display names of any user + # on this homeserver. Defaults to 'true'. + # + #allow_device_name_lookup_over_federation: false """