mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
modules/federation/make_join: Add room_version to make_join response.
This commit is contained in:
parent
bb7cf992ae
commit
2906eebd3f
1 changed files with 10 additions and 0 deletions
|
@ -98,6 +98,16 @@ get__make_join(client &client,
|
||||||
|
|
||||||
json::stack out{buf};
|
json::stack out{buf};
|
||||||
json::stack::object top{out};
|
json::stack::object top{out};
|
||||||
|
|
||||||
|
char room_version_buf[32];
|
||||||
|
json::stack::member
|
||||||
|
{
|
||||||
|
top, "room_version", json::value
|
||||||
|
{
|
||||||
|
m::version(room_version_buf, room, std::nothrow), json::STRING
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
json::stack::object event
|
json::stack::object event
|
||||||
{
|
{
|
||||||
top, "event"
|
top, "event"
|
||||||
|
|
Loading…
Reference in a new issue