Add the m.tags event to a `private_user_data
key rather than including it under the
ephemeral
` key
This commit is contained in:
parent
f8275e3e4f
commit
65066a76b3
2 changed files with 18 additions and 3 deletions
|
@ -121,6 +121,14 @@ paths:
|
||||||
e.g. typing.
|
e.g. typing.
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "definitions/event_batch.json"
|
- $ref: "definitions/event_batch.json"
|
||||||
|
private_user_data:
|
||||||
|
title: Private User Data
|
||||||
|
type: object
|
||||||
|
description: |-
|
||||||
|
The private data that this user has attached to
|
||||||
|
this room.
|
||||||
|
allOf:
|
||||||
|
- $ref: "definitions/event_batch.json"
|
||||||
invited:
|
invited:
|
||||||
title: Invited
|
title: Invited
|
||||||
type: object
|
type: object
|
||||||
|
@ -253,11 +261,18 @@ paths:
|
||||||
"ephemeral": {
|
"ephemeral": {
|
||||||
"events": [
|
"events": [
|
||||||
{
|
{
|
||||||
"room_id": "!726s6s6q:example.com",
|
|
||||||
"type": "m.typing",
|
"type": "m.typing",
|
||||||
"content": {"user_ids": ["@alice:example.com"]}
|
"content": {"user_ids": ["@alice:example.com"]}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"private_user_data": {
|
||||||
|
"events": [
|
||||||
|
{
|
||||||
|
"type": "m.tags",
|
||||||
|
"content": {"tags": ["work"]}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,8 +10,8 @@ user that set them but are shared across all their devices.
|
||||||
Events
|
Events
|
||||||
------
|
------
|
||||||
|
|
||||||
The tags on a room are passed as single ``m.tag`` event in the ``ephemeral``
|
The tags on a room are passed as single ``m.tag`` event in the
|
||||||
section of a v2 room sync.
|
``private_user_data`` section of a room in v2 sync.
|
||||||
|
|
||||||
{{m_tag_event}}
|
{{m_tag_event}}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue