summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-12-29 08:02:03 -0500
committerGitHub <noreply@github.com>2021-12-29 08:02:03 -0500
commitf58b300d271ddaad7ce81687547f3c6ed7e7187a (patch)
treefa203e641437545595f7da7a50075a7a7ad4a6d2 /synapse/handlers/message.py
parentAdd type hints to `synapse/storage/databases/main/stats.py` (#11653) (diff)
downloadsynapse-f58b300d271ddaad7ce81687547f3c6ed7e7187a.tar.xz
Do not attempt to bundled aggregations for /members and /state. (#11623)
Both of those APIs return state events, which will not have bundled
aggregations added anyway.
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r--synapse/handlers/message.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 1a7190085a..5e3d3886eb 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -246,9 +246,7 @@ 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, bundle_aggregations=True
-        )
+        events = await self._event_serializer.serialize_events(room_state.values(), now)
         return events
 
     async def get_joined_members(self, requester: Requester, room_id: str) -> dict: