Client side API's should still use stripped events with MSC4311

This commit is contained in:
Eric Eastwood
2026-04-23 12:18:04 -05:00
parent 613cb4df1c
commit bdfeb90e6e
-9
View File
@@ -1019,15 +1019,6 @@ def strip_event(event: EventBase) -> JsonDict:
Stripped state events can only have the `sender`, `type`, `state_key` and `content`
properties present.
"""
# MSC4311: Ensure the create event is available on invites and knocks.
# TODO: Implement the rest of MSC4311
if (
event.room_version.msc4291_room_ids_as_hashes
and event.type == EventTypes.Create
and event.get_state_key() == ""
):
return event.get_pdu_json()
return {
"type": event.type,
"state_key": event.state_key,