diff options
author | Erik Johnston <erik@matrix.org> | 2019-05-24 10:36:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-24 10:36:31 +0100 |
commit | d16f5574b608d7a34d36fafc64676731cb0fcba9 (patch) | |
tree | f76505893562b5e9f18f1bdbcdd05add34558646 /synapse/handlers/events.py | |
parent | Merge pull request #5244 from matrix-org/rav/server_keys/00-factor-out-fetchers (diff) | |
parent | Don't bundle aggs for /state and /members etc APIs (diff) | |
download | synapse-d16f5574b608d7a34d36fafc64676731cb0fcba9.tar.xz |
Merge pull request #5220 from matrix-org/erikj/dont_bundle_live_events
Don't bundle aggregations with events in /sync or /events or state queries
Diffstat (limited to 'synapse/handlers/events.py')
-rw-r--r-- | synapse/handlers/events.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/events.py b/synapse/handlers/events.py index 6003ad9cca..eb525070cf 100644 --- a/synapse/handlers/events.py +++ b/synapse/handlers/events.py @@ -122,6 +122,9 @@ class EventStreamHandler(BaseHandler): chunks = yield self._event_serializer.serialize_events( events, time_now, as_client_event=as_client_event, + # We don't bundle "live" events, as otherwise clients + # will end up double counting annotations. + bundle_aggregations=False, ) chunk = { |