Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Include bundled aggregations in the sync response cache. #11659

Merged
merged 5 commits into from
Jan 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ async def _load_filtered_recents(
# Don't bother to bundle aggregations if the timeline is unlimited,
# as clients will have all the necessary information.
bundled_aggregations = None
if limited:
clokep marked this conversation as resolved.
Show resolved Hide resolved
if limited or newly_joined_room:
bundled_aggregations = await self.store.get_bundled_aggregations(recents)

return TimelineBatch(
Expand Down