0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/console: Add hint param to fetch event cmd.

This commit is contained in:
Jason Volk 2020-10-03 04:32:00 -07:00
parent 0e13620604
commit 0f95a6464e

View file

@ -15685,7 +15685,7 @@ console_cmd__fetch__event(opt &out, const string_view &line)
{
const params param{line, " ",
{
"room_id", "event_id"
"room_id", "event_id", "hint"
}};
const auto room_id
@ -15698,10 +15698,16 @@ console_cmd__fetch__event(opt &out, const string_view &line)
m::event::id{param.at("event_id")}
};
const string_view hint
{
param["hint"]
};
m::fetch::opts opts;
opts.op = m::fetch::op::event;
opts.room_id = room_id;
opts.event_id = event_id;
opts.hint = hint;
auto future
{
m::fetch::start(opts)