mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-14 15:50:19 +00:00
Use correct knock_room_state reference from response
See https://github.com/element-hq/synapse/pull/19723#discussion_r3318830110
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user