mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 00:02:34 +01:00
modules/client/capabilities: List additional capabilities.
This commit is contained in:
parent
882629ab53
commit
78d6e4ce03
1 changed files with 18 additions and 0 deletions
|
@ -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 },
|
||||
|
|
Loading…
Reference in a new issue