Add examples of v1 initialSync and v2 /sync returning the client config

pull/977/head
Mark Haines 9 years ago
parent 769c5285ab
commit 22b3159a39

@ -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…
Cancel
Save