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

This commit is contained in:
Mark Haines 2015-11-16 16:34:39 +00:00
parent 769c5285ab
commit 22b3159a39
2 changed files with 36 additions and 4 deletions

View file

@ -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"
}
}
]
} }
] ]
} }

View file

@ -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"
}
} }
] ]
} }