mirror of
https://github.com/matrix-construct/construct
synced 2024-09-26 18:38:52 +02:00
ircd:Ⓜ️ Force json::STRING on event.content.body so purely numerical messages are quoted.
This commit is contained in:
parent
b06412da76
commit
032156a18e
1 changed files with 2 additions and 2 deletions
|
@ -118,8 +118,8 @@ ircd::m::message(const room &room,
|
||||||
{
|
{
|
||||||
return message(room, sender,
|
return message(room, sender,
|
||||||
{
|
{
|
||||||
{ "body", body },
|
{ "body", { body, json::STRING } },
|
||||||
{ "msgtype", msgtype }
|
{ "msgtype", { msgtype, json::STRING } },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue