summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-12-04 14:18:46 +0000
committerBrendan Abolivier <babolivier@matrix.org>2019-12-04 14:18:46 +0000
commit08a436ecb25de2c4c8f2daf423bfcaf72e985143 (patch)
tree1e6166e9cccdb49acd5856657e923775a178f591 /synapse
parentFormat changelog (diff)
downloadsynapse-08a436ecb25de2c4c8f2daf423bfcaf72e985143.tar.xz
Incorporate review
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/room.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index 3148df0de9..fd3ea8daf8 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -908,12 +908,11 @@ class RoomContextHandler(object):
             [last_event_id], state_filter=state_filter
         )
 
-        # Apply the filter on state events.
         state_events = list(state[last_event_id].values())
         if event_filter:
             state_events = event_filter.filter(state_events)
 
-        results["state"] = list(state_events)
+        results["state"] = state_events
 
         # We use a dummy token here as we only care about the room portion of
         # the token, which we replace.