mirror of
https://github.com/matrix-construct/construct
synced 2025-03-17 06:50:23 +01: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, " ",
|
||||
{
|
||||
"room_id",
|
||||
"room_id", "event_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
|
||||
{
|
||||
room_id
|
||||
room_id, event_id
|
||||
};
|
||||
|
||||
const auto hazard
|
||||
|
|
Loading…
Add table
Reference in a new issue