0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02:00

modules/console: Add state tuple output to room top cmd.

This commit is contained in:
Jason Volk 2018-05-18 00:32:58 -07:00
parent aada1c9f17
commit 4be4186730

View file

@ -2895,9 +2895,19 @@ console_cmd__room__top(opt &out, const string_view &line)
m::top(std::nothrow, room_id)
};
out << "idx: " << std::get<m::event::idx>(top) << std::endl;
out << "depth: " << std::get<int64_t>(top) << std::endl;
out << "event: " << std::get<m::event::id::buf>(top) << std::endl;
out << "idx: " << std::get<m::event::idx>(top) << std::endl;
out << "depth: " << std::get<int64_t>(top) << std::endl;
out << "event: " << std::get<m::event::id::buf>(top) << std::endl;
out << "m_state: " << std::endl;
const unique_buffer<mutable_buffer> buf{64_KiB};
const m::room::state::tuple state
{
room_id, buf
};
out << pretty(state) << std::endl;
return true;
}