diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-12-20 14:14:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 14:14:38 -0500 |
commit | dd4778875213d9cb8be7ee71d32751fbd6cdaba2 (patch) | |
tree | bc638f5df3a1e60a5cb2b15b8177810c2f49d700 /synapse/handlers/message.py | |
parent | Improve opentracing support for `ResponseCache` (#11607) (diff) | |
download | synapse-dd4778875213d9cb8be7ee71d32751fbd6cdaba2.tar.xz |
Do not bundle aggregations for APIs which shouldn't include them. (#11592)
And make bundling aggregations opt-in, instead of opt-out to avoid having APIs to include extraneous data (and being much heavier than necessary).
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r-- | synapse/handlers/message.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 5e3d3886eb..1a7190085a 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -246,7 +246,9 @@ class MessageHandler: room_state = room_state_events[membership_event_id] now = self.clock.time_msec() - events = await self._event_serializer.serialize_events(room_state.values(), now) + events = await self._event_serializer.serialize_events( + room_state.values(), now, bundle_aggregations=True + ) return events async def get_joined_members(self, requester: Requester, room_id: str) -> dict: |