s/private_user_data/account_data/

This commit is contained in:
Mark Haines 2015-11-18 15:27:26 +00:00
parent c77b22778f
commit fcbb985073
4 changed files with 8 additions and 8 deletions

View file

@ -312,7 +312,7 @@ paths:
} }
], ],
"visibility": "private", "visibility": "private",
"private_user_data": [{ "account_data": [{
"type": "m.tag", "type": "m.tag",
"content": {"tags": {"work": {"order": "1"}}} "content": {"tags": {"work": {"order": "1"}}}
}] }]
@ -375,7 +375,7 @@ 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: account_data:
type: array type: array
description: |- description: |-
The private data that this user has attached to this room. The private data that this user has attached to this room.

View file

@ -246,7 +246,7 @@ paths:
} }
], ],
"visibility": "private", "visibility": "private",
"private_user_data": [{ "account_data": [{
"type": "m.tag", "type": "m.tag",
"content": {"tags": {"work": {"order": "1"}}} "content": {"tags": {"work": {"order": "1"}}}
}] }]
@ -336,7 +336,7 @@ 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: account_data:
type: array type: array
description: |- description: |-
The private data that this user has attached to The private data that this user has attached to

View file

@ -139,7 +139,7 @@ paths:
e.g. typing. e.g. typing.
allOf: allOf:
- $ref: "definitions/event_batch.json" - $ref: "definitions/event_batch.json"
private_user_data: account_data:
title: Private User Data title: Private User Data
type: object type: object
description: |- description: |-
@ -287,7 +287,7 @@ paths:
} }
] ]
}, },
"private_user_data": { "account_data": {
"events": [ "events": [
{ {
"type": "m.tags", "type": "m.tags",

View file

@ -11,10 +11,10 @@ Events
------ ------
The tags on a room are received as single ``m.tag`` event in the The tags on a room are received as single ``m.tag`` event in the
``private_user_data`` section of a room in a v2 /sync. ``account_data`` section of a room in a v2 /sync.
The ``m.tag`` can also be received in a v1 /events response or in the The ``m.tag`` can also be received in a v1 /events response or in the
``private_user_data`` section of a room in v1 /initialSync. ``m.tag`` ``account_data`` section of a room in v1 /initialSync. ``m.tag``
events appearing in v1 /events will have a ``room_id`` with the room events appearing in v1 /events will have a ``room_id`` with the room
the tags are for. the tags are for.