mirror of
https://github.com/matrix-construct/construct
synced 2024-09-28 11:48:54 +02:00
ircd:Ⓜ️:user::devices: Add existential test before iteration of any properties.
This commit is contained in:
parent
f51bcf5939
commit
adab45fb6a
1 changed files with 3 additions and 0 deletions
|
@ -353,6 +353,9 @@ const
|
||||||
user_room
|
user_room
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if(!state.has("ircd.device.device_id", device_id))
|
||||||
|
return true;
|
||||||
|
|
||||||
const room::state::type_prefix type
|
const room::state::type_prefix type
|
||||||
{
|
{
|
||||||
"ircd.device."
|
"ircd.device."
|
||||||
|
|
Loading…
Reference in a new issue