summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-11-05 17:26:19 +0000
committerErik Johnston <erik@matrix.org>2015-11-05 17:26:19 +0000
commit66d36b8e413f7203172cc63290487fc9c6e9202c (patch)
tree8fbf4f5f249e2b0ad1bf81e3ee319be533c4d605 /synapse
parentRemove redundant test (diff)
downloadsynapse-66d36b8e413f7203172cc63290487fc9c6e9202c.tar.xz
Be explicit about what we're doing
Diffstat (limited to 'synapse')
-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 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 = []