0
0
Fork 0
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:
Jason Volk 2018-05-04 16:48:40 -07:00
parent ca45e84908
commit 96b84e30ef

View file

@ -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")));