0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 21:28:53 +02:00

modules/console: Add raw option for fed head cmd.

This commit is contained in:
Jason Volk 2019-04-17 06:51:40 -07:00
parent 655d56a849
commit 4f45571526

View file

@ -10717,7 +10717,7 @@ console_cmd__fed__head(opt &out, const string_view &line)
{
const params param{line, " ",
{
"room_id", "remote", "user_id"
"room_id", "remote", "user_id", "op"
}};
const auto &room_id
@ -10751,6 +10751,12 @@ console_cmd__fed__head(opt &out, const string_view &line)
request.in.content
};
if(param["op"] == "raw")
{
out << proto << std::endl;
return true;
}
const json::object event
{
proto["event"]