mirror of
https://github.com/matrix-construct/construct
synced 2025-02-16 16:50:12 +01:00
ircd:Ⓜ️:room::state: Fix missing history query path for has(type).
This commit is contained in:
parent
01f2564df7
commit
541accaf7b
1 changed files with 10 additions and 0 deletions
|
@ -284,6 +284,16 @@ bool
|
|||
ircd::m::room::state::has(const string_view &type)
|
||||
const
|
||||
{
|
||||
if(!present())
|
||||
{
|
||||
const history history
|
||||
{
|
||||
room_id, event_id
|
||||
};
|
||||
|
||||
return history.has(type);
|
||||
}
|
||||
|
||||
return !for_each(type, []
|
||||
(const string_view &, const string_view &, const event::idx &)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue