mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-19 09:31:35 +03:00
Merge branch 'dinsic_anoa/info_split' of github.com:matrix-org/synapse into dinsic_anoa/info_split
This commit is contained in:
commit
0a23bf442f
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ def check_3pid_allowed(hs, medium, address):
|
|||
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 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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue