diff options
author | Erik Johnston <erikj@matrix.org> | 2023-10-27 10:04:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-27 09:04:08 +0000 |
commit | c02406ac711095eedbeeff229af8e368f77196aa (patch) | |
tree | 4585ed545c0ed40240dc78c524344fb42a13d2d8 /synapse/rest/client/room.py | |
parent | Remove more usages of cursor_to_dict. (#16551) (diff) | |
download | synapse-c02406ac711095eedbeeff229af8e368f77196aa.tar.xz |
Add new module API for adding custom fields to events `unsigned` section (#16549)
Diffstat (limited to 'synapse/rest/client/room.py')
-rw-r--r-- | synapse/rest/client/room.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/rest/client/room.py b/synapse/rest/client/room.py index 553938ce9d..96f5726911 100644 --- a/synapse/rest/client/room.py +++ b/synapse/rest/client/room.py @@ -859,7 +859,7 @@ class RoomEventServlet(RestServlet): # per MSC2676, /rooms/{roomId}/event/{eventId}, should return the # *original* event, rather than the edited version - event_dict = self._event_serializer.serialize_event( + event_dict = await self._event_serializer.serialize_event( event, self.clock.time_msec(), bundle_aggregations=aggregations, @@ -911,25 +911,25 @@ class RoomEventContextServlet(RestServlet): time_now = self.clock.time_msec() serializer_options = SerializeEventConfig(requester=requester) results = { - "events_before": self._event_serializer.serialize_events( + "events_before": await self._event_serializer.serialize_events( event_context.events_before, time_now, bundle_aggregations=event_context.aggregations, config=serializer_options, ), - "event": self._event_serializer.serialize_event( + "event": await self._event_serializer.serialize_event( event_context.event, time_now, bundle_aggregations=event_context.aggregations, config=serializer_options, ), - "events_after": self._event_serializer.serialize_events( + "events_after": await self._event_serializer.serialize_events( event_context.events_after, time_now, bundle_aggregations=event_context.aggregations, config=serializer_options, ), - "state": self._event_serializer.serialize_events( + "state": await self._event_serializer.serialize_events( event_context.state, time_now, config=serializer_options, |