mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 15:30:52 +01:00
ircd:Ⓜ️:room::state: Optimize has(type).
This commit is contained in:
parent
43cabd52d5
commit
01f2564df7
1 changed files with 3 additions and 2 deletions
|
@ -284,9 +284,10 @@ bool
|
|||
ircd::m::room::state::has(const string_view &type)
|
||||
const
|
||||
{
|
||||
return for_each(type, event::id::closure_bool{[](const m::event::id &)
|
||||
return !for_each(type, []
|
||||
(const string_view &, const string_view &, const event::idx &)
|
||||
{
|
||||
return true;
|
||||
return false;
|
||||
}});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue