summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--synapse/handlers/search.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/search.py b/synapse/handlers/search.py
index bdc79ffc55..bbe82b1425 100644
--- a/synapse/handlers/search.py
+++ b/synapse/handlers/search.py
@@ -54,7 +54,7 @@ class SearchHandler(BaseHandler):
         except KeyError:
             raise SynapseError(400, "Invalid search query")
 
-        filtr = Filter(filter_dict)
+        search_filter = Filter(filter_dict)
 
         # TODO: Search through left rooms too
         rooms = yield self.store.get_rooms_for_user_where_membership_is(
@@ -64,13 +64,13 @@ class SearchHandler(BaseHandler):
         )
         room_ids = set(r.room_id for r in rooms)
 
-        room_ids = filtr.filter_rooms(room_ids)
+        room_ids = search_filter.filter_rooms(room_ids)
 
         rank_map, event_map, _ = yield self.store.search_msgs(
             room_ids, search_term, keys
         )
 
-        filtered_events = filtr.filter(event_map.values())
+        filtered_events = search_filter.filter(event_map.values())
 
         allowed_events = yield self._filter_events_for_client(
             user.to_string(), filtered_events