mirror of
https://github.com/matrix-construct/construct
synced 2024-12-01 11:12:51 +01:00
ircd:Ⓜ️:room::state::history: Make the upper depth bound inclusive.
This commit is contained in:
parent
3b0f2b7ad5
commit
6768c23811
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue