mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 00:14:07 +01:00
ircd:Ⓜ️:device: Use non-throwing query for device_id event_idx.
This commit is contained in:
parent
116b0dfcb7
commit
8b160d218e
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue