0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-28 17:52:54 +01:00

modules/client/capabilities: List additional capabilities.

This commit is contained in:
Jason Volk 2023-04-21 17:06:55 -07:00
parent 882629ab53
commit 78d6e4ce03

View file

@ -51,6 +51,16 @@ ircd::m::client_capabilities::get(client &client,
mods::loaded("client_account")
};
const bool m_set_displayname__enabled
{
mods::loaded("client_profile")
};
const bool m_set_avatar_url__enabled
{
mods::loaded("client_profile")
};
const json::value default_room_version
{
string_view{m::createroom::version_default}, json::STRING
@ -66,6 +76,14 @@ ircd::m::client_capabilities::get(client &client,
{
{ "enabled", m_change_password__enabled },
}},
{ "m.set_displayname", json::members
{
{ "enabled", m_set_displayname__enabled },
}},
{ "m.set_avatar_url", json::members
{
{ "enabled", m_set_avatar_url__enabled },
}},
{ "m.room_versions", json::members
{
{ "default", default_room_version },