diff options
author | Erik Johnston <erik@matrix.org> | 2015-11-05 17:26:19 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-11-05 17:26:19 +0000 |
commit | 66d36b8e413f7203172cc63290487fc9c6e9202c (patch) | |
tree | 8fbf4f5f249e2b0ad1bf81e3ee319be533c4d605 | |
parent | Remove redundant test (diff) | |
download | synapse-66d36b8e413f7203172cc63290487fc9c6e9202c.tar.xz |
Be explicit about what we're doing
-rw-r--r-- | synapse/handlers/search.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/search.py b/synapse/handlers/search.py index e1fb2db0c9..b7545c111f 100644 --- a/synapse/handlers/search.py +++ b/synapse/handlers/search.py @@ -121,7 +121,7 @@ class SearchHandler(BaseHandler): room_ids = search_filter.filter_rooms(room_ids) if batch_group == "room_id": - room_ids = room_ids & {batch_group_key} + room_ids.intersection_update({batch_group_key}) rank_map = {} # event_id -> rank of event allowed_events = [] |