summary refs log tree commit diff
path: root/synapse/handlers/appservice.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2016-08-24 12:33:01 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2016-08-24 12:33:01 +0100
commit9899824b851bc1e1ccaa0da8cb2dc5bf783014e8 (patch)
tree726fbe5f0b07977f816eb05c4700414a1fcc7717 /synapse/handlers/appservice.py
parentMove 3PU/3PL lookup APIs into /thirdparty containing entity (diff)
downloadsynapse-9899824b851bc1e1ccaa0da8cb2dc5bf783014e8.tar.xz
Initial hack at the 3PN protocols metadata lookup API
Diffstat (limited to 'synapse/handlers/appservice.py')
-rw-r--r--synapse/handlers/appservice.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py

index dd285452cd..6273ff524c 100644 --- a/synapse/handlers/appservice.py +++ b/synapse/handlers/appservice.py
@@ -176,6 +176,14 @@ class ApplicationServicesHandler(object): defer.returnValue(ret) @defer.inlineCallbacks + def get_3pe_protocols(self): + services = yield self.store.get_app_services() + protocols = set() + for s in services: + protocols.update(s.protocols) + defer.returnValue(protocols) + + @defer.inlineCallbacks def _get_services_for_event(self, event): """Retrieve a list of application services interested in this event.