mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
modules/console: Simplify room members read cmd.
This commit is contained in:
parent
39edf575ba
commit
9136088f26
1 changed files with 5 additions and 5 deletions
|
@ -2798,12 +2798,12 @@ console_cmd__room__members__read(opt &out, const string_view &line)
|
|||
{
|
||||
const params param{line, " ",
|
||||
{
|
||||
"room_id", "[membership]", "[event_id]"
|
||||
"event_id", "[membership]"
|
||||
}};
|
||||
|
||||
const auto &room_id
|
||||
const m::event::id &event_id
|
||||
{
|
||||
m::room_id(param.at(0))
|
||||
param.at(0)
|
||||
};
|
||||
|
||||
const string_view membership
|
||||
|
@ -2811,9 +2811,9 @@ console_cmd__room__members__read(opt &out, const string_view &line)
|
|||
param[1]
|
||||
};
|
||||
|
||||
const string_view event_id
|
||||
m::room::id::buf room_id
|
||||
{
|
||||
param[2]
|
||||
m::get(event_id, "room_id", room_id)
|
||||
};
|
||||
|
||||
const m::room room
|
||||
|
|
Loading…
Reference in a new issue