Fix the mechanical style rules. [skip build]
This commit is contained in:
@@ -91,7 +91,7 @@ export async function collectInaccessibleSpaceChildren(
|
||||
if (!spaceRoom || spaceRoom.getMyMembership() !== Membership.Join) return;
|
||||
if (!canEditSpaceChildren(mx, spaceRoom)) return;
|
||||
|
||||
for (const childId of getSpaceChildren(spaceRoom)) {
|
||||
getSpaceChildren(spaceRoom).forEach((childId) => {
|
||||
childCount += 1;
|
||||
const childRoom = mx.getRoom(childId);
|
||||
// Lobby uses joined-only getRoom; left/invite rooms still render as Inaccessible.
|
||||
@@ -100,22 +100,22 @@ export async function collectInaccessibleSpaceChildren(
|
||||
if (joined && childRoom && isSpace(childRoom)) {
|
||||
joinedCount += 1;
|
||||
walk(childId);
|
||||
continue;
|
||||
return;
|
||||
}
|
||||
|
||||
if (joined) {
|
||||
joinedCount += 1;
|
||||
continue;
|
||||
return;
|
||||
}
|
||||
|
||||
const hasHierarchySummary = hierarchySummaries.has(childId);
|
||||
if (hasHierarchySummary) {
|
||||
joinableCount += 1;
|
||||
continue;
|
||||
return;
|
||||
}
|
||||
|
||||
inaccessible.push({ parentId: spaceId, roomId: childId });
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
walk(rootSpaceId);
|
||||
|
||||
Reference in New Issue
Block a user