mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 23:44:01 +01:00
ircd:Ⓜ️:room::state: Fix empty type argument fallback path.
This commit is contained in:
parent
ceb9559a56
commit
6713aa54eb
1 changed files with 3 additions and 0 deletions
|
@ -974,6 +974,9 @@ size_t
|
|||
ircd::m::room::state::count(const string_view &type)
|
||||
const
|
||||
{
|
||||
if(!type)
|
||||
return count();
|
||||
|
||||
if(!present())
|
||||
return m::state::count(root_id, type);
|
||||
|
||||
|
|
Loading…
Reference in a new issue