summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-07-19 19:22:27 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-07-19 19:22:27 +0100
commit2f558300cc648e633342746dc7b42a36fcb6b32e (patch)
tree0c0316bc27b0f1c8de6614077a0bd1461a34808d /synapse
parentincorporate review (diff)
downloadsynapse-2f558300cc648e633342746dc7b42a36fcb6b32e.tar.xz
fix thinkos; unbreak tests
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/state.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index 75c6366e7a..f09be7172d 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -369,7 +369,7 @@ class StateGroupWorkerStore(SQLBaseStore):
         return results
 
     @defer.inlineCallbacks
-    def get_state_for_events(self, event_ids, types, filtered_types):
+    def get_state_for_events(self, event_ids, types, filtered_types=None):
         """Given a list of event_ids and type tuples, return a list of state
         dicts for each event. The state dicts will only have the type/state_keys
         that are in the `types` list.
@@ -538,7 +538,7 @@ class StateGroupWorkerStore(SQLBaseStore):
         # tracks which of the requested types are missing from our cache
         missing_types = set()
 
-        include_other_types = True if filtered_types is None else False
+        include_other_types = False if filtered_types is None else True
 
         for typ, state_key in types:
             key = (typ, state_key)