0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-18 01:48:27 +02:00

ircd:Ⓜ️:room::messages: Ret false rather than throw for seek(event_id) not_found.

This commit is contained in:
Jason Volk 2018-06-03 07:44:37 -07:00
parent 7743198601
commit a24d0e387e

View file

@ -535,6 +535,7 @@ ircd::m::room::messages::seek()
bool
ircd::m::room::messages::seek(const event::id &event_id)
try
{
auto &column
{
@ -562,6 +563,10 @@ ircd::m::room::messages::seek(const event::id &event_id)
this->it = dbs::room_events.begin(seek_key);
return bool(*this);
}
catch(const db::not_found &e)
{
return false;
}
bool
ircd::m::room::messages::seek(const uint64_t &depth)