summary refs log tree commit diff
path: root/synapse/rest/client/room.py
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-01-21 10:49:43 +0000
committerOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-01-21 10:49:43 +0000
commit7977b7f6a8654298a92657c320503938d5d1bf7c (patch)
tree981c38173bd66c7b60428d4632f423133079b6c4 /synapse/rest/client/room.py
parentMerge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes (diff)
parent1.51.0rc1 (diff)
downloadsynapse-7977b7f6a8654298a92657c320503938d5d1bf7c.tar.xz
Merge branch 'release-v1.51' into matrix-org-hotfixes
Diffstat (limited to 'synapse/rest/client/room.py')
-rw-r--r--synapse/rest/client/room.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/synapse/rest/client/room.py b/synapse/rest/client/room.py

index 31fd329a38..90bb9142a0 100644 --- a/synapse/rest/client/room.py +++ b/synapse/rest/client/room.py
@@ -714,18 +714,15 @@ class RoomEventContextServlet(RestServlet): raise SynapseError(404, "Event not found.", errcode=Codes.NOT_FOUND) time_now = self.clock.time_msec() + aggregations = results.pop("aggregations", None) results["events_before"] = self._event_serializer.serialize_events( - results["events_before"], - time_now, - bundle_aggregations=results["aggregations"], + results["events_before"], time_now, bundle_aggregations=aggregations ) results["event"] = self._event_serializer.serialize_event( - results["event"], time_now, bundle_aggregations=results["aggregations"] + results["event"], time_now, bundle_aggregations=aggregations ) results["events_after"] = self._event_serializer.serialize_events( - results["events_after"], - time_now, - bundle_aggregations=results["aggregations"], + results["events_after"], time_now, bundle_aggregations=aggregations ) results["state"] = self._event_serializer.serialize_events( results["state"], time_now