Skip to content
Snippets Groups Projects
Unverified Commit 4deaebfe authored by Erik Johnston's avatar Erik Johnston Committed by GitHub
Browse files

Make /sync do less state res (#10102)

parent 3ff6fe28
No related branches found
No related tags found
No related merge requests found
Make `/sync` do fewer state resolutions.
......@@ -463,7 +463,7 @@ class SyncHandler:
# ensure that we always include current state in the timeline
current_state_ids = frozenset() # type: FrozenSet[str]
if any(e.is_state() for e in recents):
current_state_ids_map = await self.state.get_current_state_ids(
current_state_ids_map = await self.store.get_current_state_ids(
room_id
)
current_state_ids = frozenset(current_state_ids_map.values())
......@@ -523,7 +523,7 @@ class SyncHandler:
# ensure that we always include current state in the timeline
current_state_ids = frozenset()
if any(e.is_state() for e in loaded_recents):
current_state_ids_map = await self.state.get_current_state_ids(
current_state_ids_map = await self.store.get_current_state_ids(
room_id
)
current_state_ids = frozenset(current_state_ids_map.values())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment