Fix a bug which could lead to incorrect state (#13278)

There are two fixes here:
1. A long-standing bug where we incorrectly calculated `delta_ids`; and
2. A bug introduced in #13267 where we got current state incorrect.
This commit is contained in:
Erik Johnston 2022-07-15 12:06:41 +01:00 committed by GitHub
parent 512486bbeb
commit 7be954f59b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 7 deletions

View file

@ -948,7 +948,8 @@ class EventsPersistenceStorageController:
events_context,
)
return res.state, None, new_latest_event_ids
full_state = await res.get_state(self._state_controller)
return full_state, None, new_latest_event_ids
async def _prune_extremities(
self,