mirror of
https://github.com/matrix-construct/construct
synced 2024-09-28 19:58:53 +02:00
modules/m_presence: Fix nothrow to not error on usefulness check.
This commit is contained in:
parent
ca45e84908
commit
96b84e30ef
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ try
|
|||
}
|
||||
|
||||
bool useful{true};
|
||||
m::presence::get(user_id, [&event, &object, &useful]
|
||||
m::presence::get(std::nothrow, user_id, [&event, &object, &useful]
|
||||
(const m::event &existing_event, const json::object &existing_object)
|
||||
{
|
||||
assert(json::get<"user_id"_>(object) == unquote(existing_object.get("user_id")));
|
||||
|
|
Loading…
Reference in a new issue