0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02:00

modules/client/rooms/redact: Pass txnId path parameter through eval to client.

This commit is contained in:
Jason Volk 2020-11-21 02:30:57 -08:00
parent 214af71f09
commit f26f56d46d

View file

@ -35,19 +35,22 @@ put__redact(client &client,
"txnid parameter missing"
};
char txnid_buf[64];
const string_view &txnid
{
request.parv[3]
url::decode(txnid_buf, request.parv[3])
};
const json::string &reason
{
request["reason"]
};
m::vm::copts vmopts;
vmopts.client_txnid = txnid;
const room room
{
room_id
};
const auto &reason
{
unquote(request["reason"])
room_id, &vmopts
};
const auto event_id