From 8b160d218ebcda5d40314e60bf7019bc15478083 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 1 Apr 2020 15:37:24 -0700 Subject: [PATCH] ircd::m::device: Use non-throwing query for device_id event_idx. --- matrix/device.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/matrix/device.cc b/matrix/device.cc index 4f5b879b5..c0b757d8d 100644 --- a/matrix/device.cc +++ b/matrix/device.cc @@ -161,12 +161,9 @@ ircd::m::device::del(const m::user &user, const auto event_idx { - user_room.get("ircd.device.device_id", id) + user_room.get(std::nothrow, "ircd.device.device_id", id) }; - if(!event_idx) - return false; - const auto event_id { m::event_id(event_idx, std::nothrow)