diff options
author | Erik Johnston <erik@matrix.org> | 2015-10-22 16:19:53 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-10-22 16:19:53 +0100 |
commit | 2980136d7535077f0513b8a12fd7f224700ca140 (patch) | |
tree | 3f539c8e5eb7ffa4ca995dc6f3e80c6e81fa5e8c /synapse | |
parent | LESS THAN (diff) | |
download | synapse-2980136d7535077f0513b8a12fd7f224700ca140.tar.xz |
Rename
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/handlers/search.py | 6 |
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 |