mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-31 17:18:35 -04:00
Initial hack at the 3PN protocols metadata lookup API
This commit is contained in:
parent
63c19e1df9
commit
9899824b85
3 changed files with 44 additions and 0 deletions
|
@ -175,6 +175,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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue