summary refs log tree commit diff
path: root/synapse/events
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-06-17 17:39:38 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-06-17 17:39:38 +0100
commit33ea87be3926c2cf5bd57170a808a20217433ad6 (patch)
treebf0e7c1953c2b767f184c11369fbdee09c210143 /synapse/events
parentChangelog (diff)
downloadsynapse-33ea87be3926c2cf5bd57170a808a20217433ad6.tar.xz
Make check_threepid_can_be_invited async
Diffstat (limited to 'synapse/events')
-rw-r--r--synapse/events/third_party_rules.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/events/third_party_rules.py b/synapse/events/third_party_rules.py
index 768cfa8e9c..50ceeb1e8e 100644
--- a/synapse/events/third_party_rules.py
+++ b/synapse/events/third_party_rules.py
@@ -85,6 +85,7 @@ class ThirdPartyEventRules(object):
             requester, config, is_requester_admin
         )
 
+    @defer.inlineCallbacks
     def check_threepid_can_be_invited(self, medium, address, room_id):
         """Check if a provided 3PID can be invited in the given room.