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)