mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 04:06:54 +00:00
Fix off-by-one error when fetching room hierarchy
This commit is contained in:
1 parent
6365f1a887
commit
75b6daa67f
1 file changed
+1
-1
@@ -159,7 +159,7 @@ where
|
||||
break;
|
||||
}
|
||||
|
||||
if parents.len() >= max_depth {
|
||||
if parents.len() > max_depth {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user