Update synapse/util/threepids.py

Co-Authored-By: anoadragon453 <1342360+anoadragon453@users.noreply.github.com>
pull/4681/head^2
Richard van der Hoff 2019-02-25 16:08:58 +00:00 committed by GitHub
parent 70e039c7ae
commit 13bc1e5307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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'):