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

ircd:Ⓜ️:room::messages: Add event_idx convenience conversion.

This commit is contained in:
Jason Volk 2019-05-06 14:36:49 -07:00
parent afa475eb18
commit 6c43a47d87
2 changed files with 9 additions and 0 deletions

View file

@ -57,6 +57,8 @@ struct ircd::m::room::messages
uint64_t depth() const; // Available from the iterator key.
string_view state_root() const; // Available from the iterator value.
explicit operator event::idx() const;
const m::event &fetch(std::nothrow_t);
const m::event &fetch();

View file

@ -1781,6 +1781,13 @@ catch(const db::not_found &e)
return false;
}
ircd::m::room::messages::operator
ircd::m::event::idx()
const
{
return event_idx();
}
ircd::m::event::id::buf
ircd::m::room::messages::event_id()
const