0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 22:41:12 +01: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 bool
ircd::m::room::messages::seek(const event::id &event_id) ircd::m::room::messages::seek(const event::id &event_id)
try
{ {
auto &column auto &column
{ {
@ -562,6 +563,10 @@ ircd::m::room::messages::seek(const event::id &event_id)
this->it = dbs::room_events.begin(seek_key); this->it = dbs::room_events.begin(seek_key);
return bool(*this); return bool(*this);
} }
catch(const db::not_found &e)
{
return false;
}
bool bool
ircd::m::room::messages::seek(const uint64_t &depth) ircd::m::room::messages::seek(const uint64_t &depth)