diff --git a/modules/m_room.cc b/modules/m_room.cc index 0156d14e2..792d3c089 100644 --- a/modules/m_room.cc +++ b/modules/m_room.cc @@ -25,7 +25,7 @@ count_since(const m::room &room, m::room::messages it{room}; it.seek_idx(a); - if(!it && !m::exists(room)) + if(!it && !exists(room)) throw m::NOT_FOUND { "Cannot find room '%s' to count events in", @@ -261,15 +261,11 @@ make_prev__buf(const m::room &room, }; } - -namespace ircd::m +extern "C" std::pair +is_complete(const m::room &room) { - extern "C" std::pair ircd__m__is_complete___room(const room &); -} + using namespace ircd::m; -std::pair -ircd::m::ircd__m__is_complete___room(const room &room) -{ static const event::keys::include fkeys { "depth"