0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd:Ⓜ️ Add state_root() to room messages iterator.

This commit is contained in:
Jason Volk 2018-04-26 20:25:00 -07:00
parent a734798100
commit 75b67e11fc
2 changed files with 9 additions and 0 deletions

View file

@ -179,6 +179,7 @@ struct ircd::m::room::messages
event::id::buf event_id(); // deprecated; will remove
const event::idx &event_idx();
string_view state_root() const;
const m::event &fetch(std::nothrow_t);
const m::event &fetch();

View file

@ -510,6 +510,14 @@ ircd::m::room::messages::event_id()
return ret;
}
ircd::string_view
ircd::m::room::messages::state_root()
const
{
assert(bool(*this));
return it->second;
}
const ircd::m::event::idx &
ircd::m::room::messages::event_idx()
{