mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-26 22:16:37 +02:00
Fix off-by-one error when fetching room hierarchy
This commit is contained in:
parent
6365f1a887
commit
75b6daa67f
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ where
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if parents.len() >= max_depth {
|
if parents.len() > max_depth {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue