mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01: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,
|
||||
{
|
||||
{ "body", body },
|
||||
{ "msgtype", msgtype }
|
||||
{ "body", { body, json::STRING } },
|
||||
{ "msgtype", { msgtype, json::STRING } },
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue