Don't bundle events in /sync or /events

As we'll send down the annotations too anyway, so this just ends up
confusing clients.
This commit is contained in:
Erik Johnston 2019-05-21 13:54:09 +01:00
parent 04d53794d6
commit de7672b78f
3 changed files with 9 additions and 2 deletions

View file

@ -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 = {