summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-01-22 12:06:36 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2019-01-22 12:06:36 +0000
commitc433f6109145f0cf6c80dd07ee118b68a3a0cd4e (patch)
tree2292d7fe9dd7f95186d6c46763976f05059a484d /synapse/api
parentFix a bug with single-room search searching all rooms (diff)
downloadsynapse-c433f6109145f0cf6c80dd07ee118b68a3a0cd4e.tar.xz
Ensure new filter is actually created
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/filtering.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/filtering.py b/synapse/api/filtering.py
index 0d8957175d..f3a056110f 100644
--- a/synapse/api/filtering.py
+++ b/synapse/api/filtering.py
@@ -454,7 +454,7 @@ class Filter(object):
             filter: A new filter including the given rooms and the old
                     filter's rooms.
         """
-        newFilter = self
+        newFilter = Filter(self.filter_json)
         newFilter.rooms += room_ids
         return newFilter