diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2016-08-24 12:33:01 +0100 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2016-08-24 12:33:01 +0100 |
commit | 9899824b851bc1e1ccaa0da8cb2dc5bf783014e8 (patch) | |
tree | 726fbe5f0b07977f816eb05c4700414a1fcc7717 /synapse/handlers/appservice.py | |
parent | Move 3PU/3PL lookup APIs into /thirdparty containing entity (diff) | |
download | synapse-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.py | 8 |
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. |