Fix off-by-one error when fetching room hierarchy

This commit is contained in:
Ginger authored and June Clementine Strawberry 🍓🦴 committed 2025-03-28 14:30:14 -04:00
1 parent 6365f1a887
commit 75b6daa67f
1 file changed
+1 -1
+1 -1
View File
@@ -159,7 +159,7 @@ async fn get_client_hierarchy<'a, ShortRoomIds>(
break;
}
if parents.len() >= max_depth {
if parents.len() > max_depth {
continue;
}