0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 11:48:54 +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, [&] return space.for_each(type, state_key, [&]
(const auto &type, const auto &state_key, const auto &depth, const auto &event_idx) (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; return true;
if(type == last_type && state_key == last_state_key) if(type == last_type && state_key == last_state_key)