1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/util/threepids.py b/synapse/util/threepids.py
index 84c56109ca..e48c6201d0 100644
--- a/synapse/util/threepids.py
+++ b/synapse/util/threepids.py
@@ -48,7 +48,10 @@ def check_3pid_allowed(hs, medium, address):
defer.returnValue(False)
# Check if this user is intended to register for this homeserver
- if data['hs'] != hs.config.server_name and data['shadow_hs'] != hs.config.server_name:
+ if (
+ data['hs'] != hs.config.server_name
+ and data['shadow_hs'] != hs.config.server_name
+ ):
defer.returnValue(False)
if data.get('requires_invite', False) and not data.get('invited', False):
|