0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-30 17:34:04 +01:00

ircd:Ⓜ️:user::rooms: Allow empty membership string intuitive behavior.

This commit is contained in:
Jason Volk 2018-04-11 15:56:37 -07:00
parent 33ca15e45d
commit 867a3aa9dc

View file

@ -1404,6 +1404,9 @@ ircd::m::user::rooms::for_each(const string_view &membership,
const closure_bool &closure) const closure_bool &closure)
const const
{ {
if(empty(membership))
return for_each(closure);
const m::room::state state{user_room}; const m::room::state state{user_room};
state.test("ircd.member", [&membership, &closure] state.test("ircd.member", [&membership, &closure]
(const m::event &event) (const m::event &event)