mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-24 01:58:36 +01:00
Add examples of v1 initialSync and v2 /sync returning the client config
This commit is contained in:
parent
769c5285ab
commit
22b3159a39
|
|
@ -131,6 +131,14 @@ paths:
|
||||||
"type": "m.presence"
|
"type": "m.presence"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"private_user_data": [
|
||||||
|
{
|
||||||
|
"type": "org.example.custom.config",
|
||||||
|
"content": {
|
||||||
|
"custom_config_key": "custom_config_value"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
"rooms": [
|
"rooms": [
|
||||||
{
|
{
|
||||||
"membership": "join",
|
"membership": "join",
|
||||||
|
|
@ -246,10 +254,18 @@ paths:
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"visibility": "private",
|
"visibility": "private",
|
||||||
"private_user_data": [{
|
"private_user_data": [
|
||||||
"type": "m.tag",
|
{
|
||||||
"content": {"tags": {"work": {"order": 1}}}
|
"type": "m.tag",
|
||||||
}]
|
"content": {"tags": {"work": {"order": 1}}}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "org.example.custom.room.config",
|
||||||
|
"content": {
|
||||||
|
"custom_config_key": "custom_config_value"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -215,6 +215,16 @@ paths:
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"private_user_data": {
|
||||||
|
"events": [
|
||||||
|
{
|
||||||
|
"type": "org.example.custom.config",
|
||||||
|
"content": {
|
||||||
|
"custom_config_key": "custom_config_value"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"rooms": {
|
"rooms": {
|
||||||
"joined": {
|
"joined": {
|
||||||
"!726s6s6q:example.com": {
|
"!726s6s6q:example.com": {
|
||||||
|
|
@ -271,6 +281,12 @@ paths:
|
||||||
{
|
{
|
||||||
"type": "m.tags",
|
"type": "m.tags",
|
||||||
"content": {"tags": {"work": {"order": 1}}}
|
"content": {"tags": {"work": {"order": 1}}}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "org.example.custom.room.config",
|
||||||
|
"content": {
|
||||||
|
"custom_config_key": "custom_config_value"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue