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:
parent
7743198601
commit
a24d0e387e
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue