From a119e6a3ef1ab39b6765a02c9d976783741ce1fa Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 21 Aug 2019 02:28:21 -0700 Subject: [PATCH] ircd::m::room::state::space: Exclude reference event from results. --- ircd/m_room.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/m_room.cc b/ircd/m_room.cc index 1edf2ce91..82bfb684e 100644 --- a/ircd/m_room.cc +++ b/ircd/m_room.cc @@ -2800,7 +2800,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)