mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-09 07:42:20 -04:00
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
This commit is contained in:
commit
d16f5574b6
5 changed files with 13 additions and 2 deletions
|
@ -358,6 +358,9 @@ class SyncRestServlet(RestServlet):
|
|||
def serialize(events):
|
||||
return self._event_serializer.serialize_events(
|
||||
events, time_now=time_now,
|
||||
# We don't bundle "live" events, as otherwise clients
|
||||
# will end up double counting annotations.
|
||||
bundle_aggregations=False,
|
||||
token_id=token_id,
|
||||
event_format=event_formatter,
|
||||
only_event_fields=only_fields,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue