diff --git a/matrix/room_type.cc b/matrix/room_type.cc index f1c0f858f..0d7643e97 100644 --- a/matrix/room_type.cc +++ b/matrix/room_type.cc @@ -88,6 +88,11 @@ const if(!desc && int64_t(depth) >= range.second) break; + //XXX this column's comparator can cause a seek to be off by one in + // the wrong direction when ascending. + if(!desc && depth < range.first) + continue; + if(this->_type && !prefixing && this->_type != _type) break;