0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-10 14:08:56 +02:00

ircd:Ⓜ️:room::state: Fix missing history query path for has(type).

This commit is contained in:
Jason Volk 2020-04-17 23:06:36 -07:00
parent 01f2564df7
commit 541accaf7b

View file

@ -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 &)
{