mirror of
https://github.com/matrix-construct/construct
synced 2024-09-29 12:18:54 +02:00
modules/console: Add missing event_id parameter to room sounding cmd.
This commit is contained in:
parent
4b60068809
commit
d93771b39f
1 changed files with 10 additions and 3 deletions
|
@ -9260,17 +9260,24 @@ console_cmd__room__sounding(opt &out, const string_view &line)
|
||||||
{
|
{
|
||||||
const params param{line, " ",
|
const params param{line, " ",
|
||||||
{
|
{
|
||||||
"room_id",
|
"room_id", "event_id"
|
||||||
}};
|
}};
|
||||||
|
|
||||||
const auto &room_id
|
const auto &room_id
|
||||||
{
|
{
|
||||||
m::room_id(param.at(0))
|
m::room_id(param.at("room_id"))
|
||||||
|
};
|
||||||
|
|
||||||
|
const m::event::id event_id
|
||||||
|
{
|
||||||
|
param["event_id"]?
|
||||||
|
m::event::id{param["event_id"]}:
|
||||||
|
m::event::id{}
|
||||||
};
|
};
|
||||||
|
|
||||||
const m::room room
|
const m::room room
|
||||||
{
|
{
|
||||||
room_id
|
room_id, event_id
|
||||||
};
|
};
|
||||||
|
|
||||||
const auto hazard
|
const auto hazard
|
||||||
|
|
Loading…
Reference in a new issue