Use correct knock_room_state reference from response

See https://github.com/element-hq/synapse/pull/19723#discussion_r3318830110
This commit is contained in:
Eric Eastwood
2026-07-09 18:06:25 -05:00
parent 5cc8753bd3
commit 53a68d7301
+1 -1
View File
@@ -945,7 +945,7 @@ class FederationHandler:
# validation above. The only reason this is here is because the validation
# can fail for non-compliant servers but we should still use stripped state.
stripped_room_state_for_client = self._minimal_parse_stripped_room_state(
stripped_room_state=event.unsigned.get("knock_room_state"),
stripped_room_state=knock_response.get("knock_room_state"),
)
if stripped_room_state_for_client is not None:
# Replace with our sanitized `knock_room_state`