summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-06-15 10:00:28 +0100
committerErik Johnston <erik@matrix.org>2017-06-15 10:17:21 +0100
commita9d6fa8b2b31096b8f9fdb01b8fb5a2c6386e61f (patch)
tree015ca81db72d0079d39bce18ad82b0fb53f71c5c /synapse/handlers
parentImplement updating users who share rooms on the fly (diff)
downloadsynapse-a9d6fa8b2b31096b8f9fdb01b8fb5a2c6386e61f.tar.xz
Include users who share room with requester in user directory
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/user_directory.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py
index aa8af95177..8928786fd6 100644
--- a/synapse/handlers/user_directory.py
+++ b/synapse/handlers/user_directory.py
@@ -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):