mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 16:46:50 +01:00
ircd:Ⓜ️ Make more efficient members queries.
This commit is contained in:
parent
eee2c9481f
commit
b73c467fae
1 changed files with 1 additions and 5 deletions
|
@ -1097,11 +1097,7 @@ ircd::m::local_joined(const room &room)
|
|||
room
|
||||
};
|
||||
|
||||
return !members.for_each("join", []
|
||||
(const id::user &user_id)
|
||||
{
|
||||
return my(user_id)? false : true; // false to break.
|
||||
});
|
||||
return !members.empty("join", my_host());
|
||||
}
|
||||
|
||||
/// Member(s) from another server are presently joined to the room. For example
|
||||
|
|
Loading…
Reference in a new issue