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 18:10:00 +0100
commit9bb7cec90fdc28df63f010318149a4387007a506 (patch)
tree321ca9264b5cc71fe45ff85c536a803096682e8a /synapse/events
parentChangelog (diff)
downloadsynapse-9bb7cec90fdc28df63f010318149a4387007a506.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.