mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd:Ⓜ️ Improve the exists(user_id) check.
This commit is contained in:
parent
8779cfd866
commit
eb587c6334
1 changed files with 7 additions and 1 deletions
|
@ -2601,7 +2601,13 @@ ircd::m::user::tokens
|
|||
bool
|
||||
ircd::m::exists(const user::id &user_id)
|
||||
{
|
||||
return user::users.has("ircd.user", user_id);
|
||||
// The way we know a user exists is testing if their room exists.
|
||||
const m::user::room user_room
|
||||
{
|
||||
user_id
|
||||
};
|
||||
|
||||
return m::exists(user_room);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Loading…
Reference in a new issue