mirror of
https://github.com/matrix-construct/construct
synced 2025-01-15 17:16:49 +01:00
modules/console: Support alias to id translation for fed command suite.
This commit is contained in:
parent
124102bf2f
commit
76e5543efa
1 changed files with 10 additions and 10 deletions
|
@ -2056,9 +2056,9 @@ console_cmd__fed__head(opt &out, const string_view &line)
|
|||
"room_id", "remote", "user_id"
|
||||
}};
|
||||
|
||||
const m::room::id &room_id
|
||||
const auto &room_id
|
||||
{
|
||||
param.at(0)
|
||||
m::room_id(param.at(0))
|
||||
};
|
||||
|
||||
const net::hostport remote
|
||||
|
@ -2196,9 +2196,9 @@ console_cmd__fed__sync(opt &out, const string_view &line)
|
|||
"room_id", "remote", "limit", "event_id", "timeout"
|
||||
}};
|
||||
|
||||
const m::room::id &room_id
|
||||
const auto &room_id
|
||||
{
|
||||
param.at(0)
|
||||
m::room_id(param.at(0))
|
||||
};
|
||||
|
||||
const net::hostport remote
|
||||
|
@ -2322,9 +2322,9 @@ console_cmd__fed__state(opt &out, const string_view &line)
|
|||
"room_id", "remote", "event_id|op", "op"
|
||||
}};
|
||||
|
||||
const m::room::id &room_id
|
||||
const auto &room_id
|
||||
{
|
||||
param.at(0)
|
||||
m::room_id(param.at(0))
|
||||
};
|
||||
|
||||
const net::hostport remote
|
||||
|
@ -2413,9 +2413,9 @@ console_cmd__fed__state_ids(opt &out, const string_view &line)
|
|||
"room_id", "remote", "event_id"
|
||||
}};
|
||||
|
||||
const m::room::id &room_id
|
||||
const auto &room_id
|
||||
{
|
||||
param.at(0)
|
||||
m::room_id(param.at(0))
|
||||
};
|
||||
|
||||
const net::hostport remote
|
||||
|
@ -2469,9 +2469,9 @@ console_cmd__fed__state_ids(opt &out, const string_view &line)
|
|||
bool
|
||||
console_cmd__fed__backfill(opt &out, const string_view &line)
|
||||
{
|
||||
const m::room::id &room_id
|
||||
const auto &room_id
|
||||
{
|
||||
token(line, ' ', 0)
|
||||
m::room_id(token(line, ' ', 0))
|
||||
};
|
||||
|
||||
const net::hostport remote
|
||||
|
|
Loading…
Reference in a new issue