mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-05-25 23:54:03 +00:00
Fix off-by-one error when fetching room hierarchy
This commit is contained in:
committed by
June Clementine Strawberry 🍓🦴
parent
6365f1a887
commit
75b6daa67f
@@ -159,7 +159,7 @@ async fn get_client_hierarchy<'a, ShortRoomIds>(
|
||||
break;
|
||||
}
|
||||
|
||||
if parents.len() >= max_depth {
|
||||
if parents.len() > max_depth {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user