mirror of
https://github.com/matrix-construct/construct
synced 2024-05-16 01:43:49 +02:00
ircd:Ⓜ️:rooms::summary: Add room_type to /publicRooms response.
This commit is contained in:
parent
21bc6c4e97
commit
cc7bc15d89
|
@ -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]
|
query("m.room.topic", "topic", [&obj]
|
||||||
(const string_view &value)
|
(const string_view &value)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue