Update synapse/util/threepids.py
Co-Authored-By: anoadragon453 <1342360+anoadragon453@users.noreply.github.com>pull/4681/head^2
parent
70e039c7ae
commit
13bc1e5307
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Reference in New Issue