0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-28 06:48:20 +02:00

modules/console: Add missing event_id parameter to room sounding cmd.

This commit is contained in:
Jason Volk 2020-11-12 18:17:35 -08:00
parent 4b60068809
commit d93771b39f

View file

@ -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