mirror of
https://github.com/matrix-construct/construct
synced 2024-12-28 08:24:08 +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
|
||||
{
|
||||
if(empty(membership))
|
||||
return for_each(closure);
|
||||
|
||||
const m::room::state state{user_room};
|
||||
state.test("ircd.member", [&membership, &closure]
|
||||
(const m::event &event)
|
||||
|
|
Loading…
Reference in a new issue