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

modules/console: Fetch a head event id as default to feds backfill param.

This commit is contained in:
Jason Volk 2018-04-30 22:49:29 -07:00
parent 1aa3c68724
commit a03e467cff

View file

@ -3515,7 +3515,7 @@ console_cmd__feds__backfill(opt &out, const string_view &line)
{
const params param{line, " ",
{
"room_id", "event_id", "[limit]"
"room_id", "[event_id]", "[limit]"
}};
const auto &room_id
@ -3523,9 +3523,9 @@ console_cmd__feds__backfill(opt &out, const string_view &line)
m::room_id(param.at(0))
};
const m::event::id &event_id
const m::event::id::buf &event_id
{
param.at(1)
param.count() > 1? param.at(1) : head(room_id)
};
const size_t limit