mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-25 15:00:46 -04:00
Skip waiting for full state for incoming events (#13144)
When we receive an event over federation during a faster join, there is no need to wait for full state, since we have a whole reconciliation process designed to take the partial state into account.
This commit is contained in:
parent
c0efc689cb
commit
8c2825276f
3 changed files with 13 additions and 4 deletions
|
@ -131,7 +131,9 @@ class _DummyStore:
|
|||
async def get_room_version_id(self, room_id):
|
||||
return RoomVersions.V1.identifier
|
||||
|
||||
async def get_state_group_for_events(self, event_ids):
|
||||
async def get_state_group_for_events(
|
||||
self, event_ids, await_full_state: bool = True
|
||||
):
|
||||
res = {}
|
||||
for event in event_ids:
|
||||
res[event] = self._event_to_state_group[event]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue