0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd:Ⓜ️:room::auth: Allow an incorrect fifth event; warning remains.

This commit is contained in:
Jason Volk 2020-05-01 10:03:41 -07:00
parent 84347857c6
commit 4e9664ebce
2 changed files with 3 additions and 2 deletions

View file

@ -27,7 +27,7 @@ struct ircd::m::room::auth
static bool is_power_event(const event &);
static std::array<event::idx, 5> relative_idx(const event &, const room &);
static std::array<event::idx, 4> static_idx(const event &);
static std::array<event::idx, 5> static_idx(const event &);
static passfail check(const event &, hookdata &);
static passfail check(const event &, const vector_view<event::idx> &);

View file

@ -553,7 +553,7 @@ ircd::m::check_room_auth_rule_9(const m::event &event,
};
}
std::array<ircd::m::event::idx, 4>
std::array<ircd::m::event::idx, 5>
ircd::m::room::auth::static_idx(const event &event)
{
const m::event::prev refs
@ -580,6 +580,7 @@ ircd::m::room::auth::static_idx(const event &event)
count > 1? m::index(refs.auth_event(1)): 0UL,
count > 2? m::index(refs.auth_event(2)): 0UL,
count > 3? m::index(refs.auth_event(3)): 0UL,
count > 4? m::index(refs.auth_event(4)): 0UL,
};
}