mirror of
https://github.com/matrix-construct/construct
synced 2024-06-28 23:08:20 +02:00
ircd:Ⓜ️:room::messages: Add event_idx convenience conversion.
This commit is contained in:
parent
afa475eb18
commit
6c43a47d87
|
@ -57,6 +57,8 @@ struct ircd::m::room::messages
|
||||||
uint64_t depth() const; // Available from the iterator key.
|
uint64_t depth() const; // Available from the iterator key.
|
||||||
string_view state_root() const; // Available from the iterator value.
|
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(std::nothrow_t);
|
||||||
const m::event &fetch();
|
const m::event &fetch();
|
||||||
|
|
||||||
|
|
|
@ -1781,6 +1781,13 @@ catch(const db::not_found &e)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ircd::m::room::messages::operator
|
||||||
|
ircd::m::event::idx()
|
||||||
|
const
|
||||||
|
{
|
||||||
|
return event_idx();
|
||||||
|
}
|
||||||
|
|
||||||
ircd::m::event::id::buf
|
ircd::m::event::id::buf
|
||||||
ircd::m::room::messages::event_id()
|
ircd::m::room::messages::event_id()
|
||||||
const
|
const
|
||||||
|
|
Loading…
Reference in a new issue