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:
parent
33ca15e45d
commit
867a3aa9dc
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue