mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-05 12:44:58 -04:00
Refactor the code to inject bundled relations during serialization. (#11408)
This commit is contained in:
parent
1035663833
commit
6a5dd485bd
8 changed files with 92 additions and 73 deletions
|
@ -448,7 +448,7 @@ class RoomStateRestServlet(RestServlet):
|
|||
now,
|
||||
# We don't bother bundling aggregations in when asked for state
|
||||
# events, as clients won't use them.
|
||||
bundle_aggregations=False,
|
||||
bundle_relations=False,
|
||||
)
|
||||
ret = {"state": room_state}
|
||||
|
||||
|
@ -778,7 +778,7 @@ class RoomEventContextServlet(RestServlet):
|
|||
results["state"],
|
||||
time_now,
|
||||
# No need to bundle aggregations for state events
|
||||
bundle_aggregations=False,
|
||||
bundle_relations=False,
|
||||
)
|
||||
|
||||
return 200, results
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue