Add examples of v1 initialSync and v2 /sync returning the client config
This commit is contained in:
parent
769c5285ab
commit
22b3159a39
2 changed files with 36 additions and 4 deletions
|
@ -131,6 +131,14 @@ paths:
|
|||
"type": "m.presence"
|
||||
}
|
||||
],
|
||||
"private_user_data": [
|
||||
{
|
||||
"type": "org.example.custom.config",
|
||||
"content": {
|
||||
"custom_config_key": "custom_config_value"
|
||||
}
|
||||
}
|
||||
],
|
||||
"rooms": [
|
||||
{
|
||||
"membership": "join",
|
||||
|
@ -246,10 +254,18 @@ paths:
|
|||
}
|
||||
],
|
||||
"visibility": "private",
|
||||
"private_user_data": [{
|
||||
"type": "m.tag",
|
||||
"content": {"tags": {"work": {"order": 1}}}
|
||||
}]
|
||||
"private_user_data": [
|
||||
{
|
||||
"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": {
|
||||
"joined": {
|
||||
"!726s6s6q:example.com": {
|
||||
|
@ -271,6 +281,12 @@ paths:
|
|||
{
|
||||
"type": "m.tags",
|
||||
"content": {"tags": {"work": {"order": 1}}}
|
||||
},
|
||||
{
|
||||
"type": "org.example.custom.room.config",
|
||||
"content": {
|
||||
"custom_config_key": "custom_config_value"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue