0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 10:08:56 +02:00

ircd:Ⓜ️ Improve the exists(user_id) check.

This commit is contained in:
Jason Volk 2019-08-11 20:07:32 -07:00
parent 8779cfd866
commit eb587c6334

View file

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