0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-29 08:54:02 +01:00

modules/console: Fix regression.

This commit is contained in:
Jason Volk 2019-07-11 22:09:58 -07:00
parent 09ea0be2f0
commit 519b19547d

View file

@ -11175,14 +11175,9 @@ console_cmd__feds__head(opt &out, const string_view &line)
result.object.at("event")
};
const json::array prev_events
{
event["prev_events"]
};
out << "+ " << std::setw(40) << std::left << result.origin;
out << " " << event["depth"];
const m::event::prev prev(prev_events);
const m::event::prev prev(event);
for(size_t i(0); i < prev.prev_events_count(); ++i)
{
const auto &prev_event_id