mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
ircd:Ⓜ️:room: Passthru as wildcard for empty type string.
This commit is contained in:
parent
64ccbea79d
commit
f54e05b7f0
1 changed files with 6 additions and 0 deletions
|
@ -1162,6 +1162,9 @@ ircd::m::room::state::for_each(const string_view &type,
|
|||
const event::id::closure_bool &closure)
|
||||
const
|
||||
{
|
||||
if(!type)
|
||||
return for_each(closure);
|
||||
|
||||
if(!present())
|
||||
return !m::state::test(root_id, type, [&closure]
|
||||
(const json::array &key, const string_view &event_id)
|
||||
|
@ -1201,6 +1204,9 @@ ircd::m::room::state::for_each(const string_view &type,
|
|||
const event::closure_idx_bool &closure)
|
||||
const
|
||||
{
|
||||
if(!type)
|
||||
return for_each(closure);
|
||||
|
||||
if(!present())
|
||||
return !m::state::test(root_id, type, [&closure]
|
||||
(const json::array &key, const string_view &event_id)
|
||||
|
|
Loading…
Reference in a new issue