diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-10-13 07:24:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 07:24:07 -0400 |
commit | 1f9d0b8a7a6a777d59fe3217724f3e2ddb94a9b2 (patch) | |
tree | 194112442fecf38e0b54cc6844c93f64c2dfefb6 /synapse/rest/client/relations.py | |
parent | Port the Password Auth Providers module interface to the new generic interfac... (diff) | |
download | synapse-1f9d0b8a7a6a777d59fe3217724f3e2ddb94a9b2.tar.xz |
Add type hints to synapse.events.*. (#11066)
Except `synapse/events/__init__.py`, which will be done in a follow-up.
Diffstat (limited to '')
-rw-r--r-- | synapse/rest/client/relations.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/rest/client/relations.py b/synapse/rest/client/relations.py index 0b0711c03c..d695c18be2 100644 --- a/synapse/rest/client/relations.py +++ b/synapse/rest/client/relations.py @@ -232,12 +232,12 @@ class RelationPaginationServlet(RestServlet): # Similarly, we don't allow relations to be applied to relations, so we # return the original relations without any aggregations on top of them # here. - events = await self._event_serializer.serialize_events( + serialized_events = await self._event_serializer.serialize_events( events, now, bundle_aggregations=False ) return_value = pagination_chunk.to_dict() - return_value["chunk"] = events + return_value["chunk"] = serialized_events return_value["original_event"] = original_event return 200, return_value @@ -416,10 +416,10 @@ class RelationAggregationGroupPaginationServlet(RestServlet): ) now = self.clock.time_msec() - events = await self._event_serializer.serialize_events(events, now) + serialized_events = await self._event_serializer.serialize_events(events, now) return_value = result.to_dict() - return_value["chunk"] = events + return_value["chunk"] = serialized_events return 200, return_value |