0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd:Ⓜ️:room::message: Name m.relates_to in the tuple.

This commit is contained in:
Jason Volk 2022-08-02 15:56:04 -07:00
parent d978a02b91
commit 504e0a1883
3 changed files with 5 additions and 0 deletions

View file

@ -209,6 +209,7 @@ struct ircd::m::name
static constexpr const char *const msgtype {"msgtype"};
static constexpr const char *const format {"format"};
static constexpr const char *const formatted_body {"formatted_body"};
static constexpr const char *const m_relates_to {"m.relates_to"};
static constexpr const char *const usage {"usage"};
static constexpr const char *const master_key {"master_key"};

View file

@ -23,6 +23,9 @@ struct ircd::m::room::message
/// Required. The body of the message.
json::property<name::body, json::string>,
/// m.relates_to
json::property<name::m_relates_to, json::object>,
/// Required. enum.
json::property<name::msgtype, json::string>,

View file

@ -188,6 +188,7 @@ constexpr const char *const ircd::m::name::body;
constexpr const char *const ircd::m::name::msgtype;
constexpr const char *const ircd::m::name::format;
constexpr const char *const ircd::m::name::formatted_body;
constexpr const char *const ircd::m::name::m_relates_to;
constexpr const char *const ircd::m::name::usage;
constexpr const char *const ircd::m::name::master_key;