Move invite_room_state to the correct place in the client-server API

Fixes https://github.com/matrix-org/matrix-doc/issues/1350
This commit is contained in:
Travis Ralston 2018-08-26 20:51:39 -06:00
parent 32ce676eb6
commit e9e93b0eec
3 changed files with 47 additions and 47 deletions

View file

@ -875,15 +875,6 @@ class MatrixUnits(Units):
Units.prop(json_schema, "properties/content")
)
# This is horrible because we're special casing a key on m.room.member.
# We need to do this because we want to document a non-content object.
if schema["type"] == "m.room.member":
invite_room_state = get_tables_for_schema(
json_schema["properties"]["invite_room_state"]["items"],
)
schema["content_fields"].extend(invite_room_state)
# grab msgtype if it is the right kind of event
msgtype = Units.prop(
json_schema, "properties/content/properties/msgtype/enum"