From 487754f4e16a49f0abf63adbf2f0011a73870e07 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Fri, 1 Oct 2021 01:56:23 -0500 Subject: Restore back to what was before --- synapse/handlers/room.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index de8e6e7c11..873e08258e 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -1167,13 +1167,12 @@ class RoomContextHandler: # XXX: why do we return the state as of the last event rather than the # first? Shouldn't we be consistent with /sync? # https://github.com/matrix-org/matrix-doc/issues/687 - event_id_to_get_state_from = last_event_id state = await self.state_store.get_state_for_events( - [event_id_to_get_state_from], state_filter=state_filter + [last_event_id], state_filter=state_filter ) - state_events = list(state[event_id_to_get_state_from].values()) + state_events = list(state[last_event_id].values()) if event_filter: state_events = event_filter.filter(state_events) -- cgit 1.4.1