summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-10-14 09:46:31 +0100
committerErik Johnston <erik@matrix.org>2015-10-14 09:46:31 +0100
commitd25b0f65ea9ab36dbf4285d86a1ca3e357f6ad1c (patch)
treee7e1cd47a45acdc2cc2a87f7f74ce9d07243fde5 /synapse
parentAdd paranoia limit (diff)
downloadsynapse-d25b0f65ea9ab36dbf4285d86a1ca3e357f6ad1c.tar.xz
Add TODO markers
Diffstat (limited to '')
-rw-r--r--synapse/handlers/search.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/handlers/search.py b/synapse/handlers/search.py
index 8864a921fc..79c1569868 100644
--- a/synapse/handlers/search.py
+++ b/synapse/handlers/search.py
@@ -88,6 +88,7 @@ class SearchHandler(BaseHandler):
         except KeyError:
             raise SynapseError(400, "Invalid search query")
 
+        # TODO: Search through left rooms too
         rooms = yield self.store.get_rooms_for_user_where_membership_is(
             user.to_string(),
             membership_list=[Membership.JOIN],
@@ -95,6 +96,8 @@ class SearchHandler(BaseHandler):
         )
         room_ids = set(r.room_id for r in rooms)
 
+        # TODO: Apply room filter to rooms list
+
         rank_map, event_map = yield self.store.search_msgs(room_ids, search_term, keys)
 
         allowed_events = yield self._filter_events_for_client(
@@ -111,7 +114,7 @@ class SearchHandler(BaseHandler):
             for e in allowed_events
         }
 
-        logger.info("returning: %r", results)
+        logger.info("Found %d results", len(results))
 
         defer.returnValue({
             "search_categories": {