Make check_threepid_can_be_invited async

This commit is contained in:
Brendan Abolivier 2019-06-17 17:39:38 +01:00
parent 8a8644045f
commit 9bb7cec90f

View File

@ -85,6 +85,7 @@ class ThirdPartyEventRules(object):
requester, config, is_requester_admin requester, config, is_requester_admin
) )
@defer.inlineCallbacks
def check_threepid_can_be_invited(self, medium, address, room_id): def check_threepid_can_be_invited(self, medium, address, room_id):
"""Check if a provided 3PID can be invited in the given room. """Check if a provided 3PID can be invited in the given room.