0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-20 15:38:53 +02:00

ircd:Ⓜ️:feds: Use a misc arg vector of string_view's.

This commit is contained in:
Jason Volk 2019-04-12 00:52:29 -07:00
parent 302969f100
commit 06e381ce2b
4 changed files with 4 additions and 4 deletions

View file

@ -50,5 +50,5 @@ struct ircd::m::feds::opts
m::room::id room_id;
m::event::id event_id;
m::user::id user_id;
bool ids {false};
string_view arg[4]; // misc argv
};

View file

@ -10093,7 +10093,7 @@ console_cmd__feds__state(opt &out, const string_view &line)
opts.timeout = out.timeout;
opts.event_id = event_id;
opts.room_id = room_id;
opts.ids = true;
opts.arg[0] = "ids";
m::feds::state(opts, closure);

View file

@ -89,7 +89,7 @@ ircd::m::feds::state(const opts &opts,
{
m::v1::state::opts v1opts;
v1opts.dynamic = true;
v1opts.ids_only = opts.ids;
v1opts.ids_only = opts.arg[0] == "ids";
v1opts.event_id = opts.event_id;
v1opts.remote = string_view
{

View file

@ -188,7 +188,7 @@ ircd::m::fetch::state_ids(const room &room)
m::feds::opts opts;
opts.room_id = room.room_id;
opts.event_id = room.event_id;
opts.ids = true;
opts.arg[0] = "ids";
m::feds::state(opts, [&room](const auto &result)
{
try