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:
parent
214af71f09
commit
f26f56d46d
1 changed files with 10 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue