mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 08:24:08 +01:00
ircd:Ⓜ️ Real uses for this prefer to include the user in the iteration.
This commit is contained in:
parent
bd4a16fab1
commit
56234556e8
1 changed files with 1 additions and 6 deletions
|
@ -1503,12 +1503,7 @@ const
|
|||
// here we gooooooo :/
|
||||
///TODO: ideal: db schema
|
||||
///TODO: minimally: custom alloc?
|
||||
std::set<std::string, std::less<>> seen
|
||||
{
|
||||
// start with the user so they don't reflect in the iteration.
|
||||
std::string{user.user_id}
|
||||
};
|
||||
|
||||
std::set<std::string, std::less<>> seen;
|
||||
rooms.for_each(membership, rooms::closure_bool{[&membership, &closure, &seen]
|
||||
(const m::room &room, const string_view &)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue