Add private_user_data to v1 room /initialSync

This commit is contained in:
Mark Haines 2015-10-30 16:55:18 +00:00
parent b49472e3b0
commit ad86426e95

View file

@ -311,7 +311,12 @@ paths:
"user_id": "@alice:example.com" "user_id": "@alice:example.com"
} }
], ],
"visibility": "private" "visibility": "private",
"private_user_data": [{
"type": "m.tag",
"content": {"tags": ["work"]},
"room_id": "!636q39766251:example.com"
}]
} }
schema: schema:
title: RoomInfo title: RoomInfo
@ -371,6 +376,15 @@ paths:
description: |- description: |-
Whether this room is visible to the ``/publicRooms`` API Whether this room is visible to the ``/publicRooms`` API
or not." or not."
private_user_data:
type: array
description: |-
The private data that this user has attached to this room.
items:
title: Event
type: object
allOf:
- "$ref": "core-event-schema/event.json"
required: ["room_id", "membership"] required: ["room_id", "membership"]
403: 403:
description: > description: >