0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 12:18:54 +02:00

ircd:Ⓜ️:device: Use non-throwing query for device_id event_idx.

This commit is contained in:
Jason Volk 2020-04-01 15:37:24 -07:00
parent 116b0dfcb7
commit 8b160d218e

View file

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