mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40: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
|
||||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue