Try and drop stale extremities. (#8929)

If we see stale extremities while persisting events, and notice that
they don't change the result of state resolution, we drop them.
This commit is contained in:
Erik Johnston 2020-12-18 09:49:18 +00:00 committed by GitHub
parent f1db20b5a5
commit 70586aa63e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 523 additions and 18 deletions

View file

@ -125,7 +125,7 @@ async def filter_events_for_client(
# see events in the room at that point in the DAG, and that shouldn't be decided
# on those checks.
if filter_send_to_client:
if event.type == "org.matrix.dummy_event":
if event.type == EventTypes.Dummy:
return None
if not event.is_state() and event.sender in ignore_list: