From 13bc1e5307d0d1e09556da28b96f305fcc15f8cb Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Mon, 25 Feb 2019 16:08:58 +0000 Subject: Update synapse/util/threepids.py Co-Authored-By: anoadragon453 <1342360+anoadragon453@users.noreply.github.com> --- synapse/util/threepids.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/util/threepids.py b/synapse/util/threepids.py index 4f3cb9c804..b51ac0add8 100644 --- a/synapse/util/threepids.py +++ b/synapse/util/threepids.py @@ -47,7 +47,7 @@ def check_3pid_allowed(hs, medium, address): if 'hs' not in data: defer.returnValue(False) - if data.get('requires_invite', False) and data.get('invited', False) == False: + if data.get('requires_invite', False) and not data.get('invited', False): # Requires an invite but hasn't been invited defer.returnValue(False) if hs.config.allow_invited_3pids and data.get('invited'): -- cgit 1.4.1