summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-05-24 09:52:33 +0100
committerErik Johnston <erik@matrix.org>2019-05-24 09:52:33 +0100
commit4cb577c23f1399d233d72cee45efad36982f692a (patch)
tree00268434833aa7ae604d6f7a51f7aab6cf250b4b /synapse/handlers/message.py
parentNewsfile (diff)
downloadsynapse-4cb577c23f1399d233d72cee45efad36982f692a.tar.xz
Don't bundle aggs for /state and /members etc APIs
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r--synapse/handlers/message.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 7b2c33a922..7e40cb6502 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -166,6 +166,9 @@ class MessageHandler(object):
         now = self.clock.time_msec()
         events = yield self._event_serializer.serialize_events(
             room_state.values(), now,
+            # We don't bother bundling aggregations in when asked for state
+            # events, as clients won't use them.
+            bundle_aggregations=False,
         )
         defer.returnValue(events)