mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Filter 3PU lookups by only ASes that declare knowledge of that protocol
This commit is contained in:
parent
d5bf7a4a99
commit
434bbf2cb5
3 changed files with 22 additions and 3 deletions
|
@ -191,9 +191,11 @@ class ApplicationServicesHandler(object):
|
|||
|
||||
@defer.inlineCallbacks
|
||||
def _get_services_for_3pn(self, protocol):
|
||||
# TODO(paul): Filter by protocol
|
||||
services = yield self.store.get_app_services()
|
||||
defer.returnValue(services)
|
||||
interested_list = [
|
||||
s for s in services if s.is_interested_in_protocol(protocol)
|
||||
]
|
||||
defer.returnValue(interested_list)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def _is_unknown_user(self, user_id):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue