mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
modules/client/capabilities: Fix m.room.version->default serialization type.
modules/client/capabilities: Add room version "4" and "5" with unstable disposition for now.
This commit is contained in:
parent
ff4fefe99c
commit
c54c2fb9d0
1 changed files with 8 additions and 1 deletions
|
@ -51,6 +51,11 @@ ircd::m::client_capabilities::get(client &client,
|
|||
mods::loaded("client_account")
|
||||
};
|
||||
|
||||
const json::value default_room_version
|
||||
{
|
||||
"1", json::STRING
|
||||
};
|
||||
|
||||
return resource::response
|
||||
{
|
||||
client, json::members
|
||||
|
@ -63,12 +68,14 @@ ircd::m::client_capabilities::get(client &client,
|
|||
}},
|
||||
{ "m.room_version", json::members
|
||||
{
|
||||
{ "default", "1" },
|
||||
{ "default", default_room_version },
|
||||
{ "available", json::members
|
||||
{
|
||||
{ "1", "stable" },
|
||||
{ "2", "unstable" },
|
||||
{ "3", "unstable" },
|
||||
{ "4", "unstable" },
|
||||
{ "5", "unstable" },
|
||||
}},
|
||||
}},
|
||||
}},
|
||||
|
|
Loading…
Reference in a new issue