summary refs log tree commit diff
path: root/synapse/handlers/search.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-10-21 10:09:26 +0100
committerErik Johnston <erik@matrix.org>2015-10-21 10:09:26 +0100
commit5c41224a89a9ceedeb5db10f972c10344382faf2 (patch)
tree29a7fb8a4851d4b5434d2105d203e3b6cbd947cb /synapse/handlers/search.py
parentFilter search results (diff)
downloadsynapse-5c41224a89a9ceedeb5db10f972c10344382faf2.tar.xz
Filter room ids before hitting the database
Diffstat (limited to 'synapse/handlers/search.py')
-rw-r--r--synapse/handlers/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/search.py b/synapse/handlers/search.py
index 473aab53f0..f53e5d35ac 100644
--- a/synapse/handlers/search.py
+++ b/synapse/handlers/search.py
@@ -64,7 +64,7 @@ class SearchHandler(BaseHandler):
         )
         room_ids = set(r.room_id for r in rooms)
 
-        # TODO: Apply room filter to rooms list
+        room_ids = filtr.filter_rooms(room_ids)
 
         rank_map, event_map = yield self.store.search_msgs(room_ids, search_term, keys)