diff options
author | Patrick Cloke <patrickc@matrix.org> | 2023-04-10 12:53:36 -0400 |
---|---|---|
committer | Patrick Cloke <patrickc@matrix.org> | 2023-07-17 11:05:43 -0400 |
commit | 2c7001679ebbf296913eac2961c63306b510d819 (patch) | |
tree | f4dd5a2b067c00d97f65f59622ffbaa8b5d83df1 | |
parent | Linearized Matrix events do not have a depth. (diff) | |
download | synapse-2c7001679ebbf296913eac2961c63306b510d819.tar.xz |
Ignore non-state events sent in state.
-rw-r--r-- | synapse/handlers/federation_event.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/federation_event.py b/synapse/handlers/federation_event.py index d32d224d56..f4bebc76d8 100644 --- a/synapse/handlers/federation_event.py +++ b/synapse/handlers/federation_event.py @@ -495,6 +495,9 @@ class FederationEventHandler: PartialStateConflictError if the homeserver is already in the room and it has been un-partial stated. """ + # TODO(LM) LM server currently includes non-state events. + state = [e for e in state if e.is_state()] + create_event = None for e in state: if (e.type, e.state_key) == (EventTypes.Create, ""): |