0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 14:31:11 +01:00

ircd:Ⓜ️:room::state::space: Exclude reference event from results.

This commit is contained in:
Jason Volk 2019-08-21 02:28:21 -07:00
parent 586468501f
commit a119e6a3ef

View file

@ -2800,7 +2800,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)