0
0
Fork 0
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:
Jason Volk 2019-07-15 14:30:26 -07:00
parent bb7cf992ae
commit 2906eebd3f

View file

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