mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 00:44:49 -04:00
Include users who share room with requester in user directory
This commit is contained in:
parent
4564b05483
commit
a9d6fa8b2b
3 changed files with 47 additions and 26 deletions
|
@ -71,7 +71,7 @@ class UserDirectoyHandler(object):
|
|||
# we start populating the user directory
|
||||
self.clock.call_later(0, self.notify_new_event)
|
||||
|
||||
def search_users(self, search_term, limit):
|
||||
def search_users(self, user_id, search_term, limit):
|
||||
"""Searches for users in directory
|
||||
|
||||
Returns:
|
||||
|
@ -88,7 +88,7 @@ class UserDirectoyHandler(object):
|
|||
]
|
||||
}
|
||||
"""
|
||||
return self.store.search_user_dir(search_term, limit)
|
||||
return self.store.search_user_dir(user_id, search_term, limit)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def notify_new_event(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue