mirror of
https://github.com/matrix-construct/construct
synced 2024-11-10 20:11:07 +01:00
ircd:Ⓜ️:feds: Use a misc arg vector of string_view's.
This commit is contained in:
parent
302969f100
commit
06e381ce2b
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue