0
0
Fork 0
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:
Jason Volk 2018-04-12 22:48:00 -07:00
parent bd4a16fab1
commit 56234556e8

View file

@ -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 &)
{