Fix the small mechanical rules. [skip build]
Checks / checks (push) Successful in 2m12s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
2026-11-01 10:28:59 +11:00
parent bb85cd9778
commit 73554ecf7f
45 changed files with 331 additions and 347 deletions
+3 -2
View File
@@ -564,10 +564,11 @@ export function TitleBar({ mx, children }: TitleBarProps) {
// Pick the best parent (or first if only one)
const parentsList = Array.from(parents);
const [firstParent] = parentsList;
let chosenParent: string;
if (parentsList.length === 1) {
chosenParent = parentsList[0];
chosenParent = firstParent;
} else {
// Use heuristic to pick best parent
// Prefer a parent that is itself a top-level space (orphan)
@@ -577,7 +578,7 @@ export function TitleBar({ mx, children }: TitleBarProps) {
chosenParent = guessPerfectParent(mx, currentRoomId, orphanParents) ?? orphanParents[0];
} else {
// All parents have parents themselves, just pick first and continue
chosenParent = parentsList[0];
chosenParent = firstParent;
}
}