mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-08-04 00:44:10 -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
|
@ -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 = {
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue