0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-24 12:58:21 +02:00

ircd:Ⓜ️:room::state::history: Make the upper depth bound inclusive.

This commit is contained in:
Jason Volk 2020-12-06 12:05:36 -08:00
parent 3b0f2b7ad5
commit 6768c23811

View file

@ -177,7 +177,7 @@ const
return space.for_each(type, state_key, [&]
(const auto &type, const auto &state_key, const auto &depth, const auto &event_idx)
{
if(bound > -1 && depth >= bound)
if(bound > -1 && depth > bound)
return true;
if(type == last_type && state_key == last_state_key)