ircd:Ⓜ️:rooms::summary: Add room_type to /publicRooms response.

This commit is contained in:
Jason Volk 2023-02-22 14:20:28 -08:00
parent 21bc6c4e97
commit cc7bc15d89
1 changed files with 11 additions and 0 deletions

View File

@ -486,6 +486,17 @@ ircd::m::rooms::summary::chunk_local(const m::room &room,
};
}
// room_type
{
char buf[128];
string_view room_type;
if((room_type = m::type(buf, room)))
json::stack::member
{
obj, "room_type", room_type
};
}
query("m.room.topic", "topic", [&obj]
(const string_view &value)
{