Skip to content

Commit

Permalink
modules/federation/state: Implement room_version in response; matrix-…
Browse files Browse the repository at this point in the history
  • Loading branch information
jevolk committed May 1, 2020
1 parent 9cb01e7 commit 7854a0e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/federation/state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ get__state(client &client,

json::stack::object top{out};

// MSC2314 added room_version
char version_buf[32];
json::stack::member
{
top, "room_version", m::version(version_buf, room)
};

// pdus
if(request.query.get<bool>("pdus", true))
{
Expand Down

0 comments on commit 7854a0e

Please sign in to comment.