summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-05-31 14:00:01 +0100
committerErik Johnston <erik@matrix.org>2017-05-31 14:00:01 +0100
commit3b5f22ca40303392e45c8407952ecf3ee15785f6 (patch)
treea2f4f6efcee5be6e5f2648d390dcad7d7fbb7485 /synapse/handlers
parentUpdate room column when room becomes unpublic (diff)
downloadsynapse-3b5f22ca40303392e45c8407952ecf3ee15785f6.tar.xz
Add search
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/user_directory.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py
index 0cf403f599..4a9565df93 100644
--- a/synapse/handlers/user_directory.py
+++ b/synapse/handlers/user_directory.py
@@ -40,6 +40,9 @@ class UserDirectoyHandler(object):
 
         self.clock.call_later(0, self.notify_new_event)
 
+    def search_users(self, search_term, limit):
+        return self.store.search_user_dir(search_term, limit)
+
     @defer.inlineCallbacks
     def notify_new_event(self):
         if self._is_processing: