feat: remove unjoined sub-room handling from Home and Space components
This commit is contained in:
@@ -291,9 +291,6 @@ export function Home() {
|
|||||||
subRooms.forEach((subRoomId, index) => {
|
subRooms.forEach((subRoomId, index) => {
|
||||||
addRoomAndSubRooms(subRoomId, depth + 1, roomId, index === subRooms.length - 1);
|
addRoomAndSubRooms(subRoomId, depth + 1, roomId, index === subRooms.length - 1);
|
||||||
});
|
});
|
||||||
} else if (parentId) {
|
|
||||||
// Unjoined sub-room - show with join button
|
|
||||||
items.push({ type: 'unjoined-subroom', roomId, depth, parentId, isLast });
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -470,9 +470,6 @@ export function Space() {
|
|||||||
items.push({ type: 'subroom', roomId: subRoomId, room: subRoom, depth: baseDepth + 1, isLast });
|
items.push({ type: 'subroom', roomId: subRoomId, room: subRoom, depth: baseDepth + 1, isLast });
|
||||||
// Recursively add sub-rooms of sub-rooms
|
// Recursively add sub-rooms of sub-rooms
|
||||||
addSubRooms(subRoomId, baseDepth + 1);
|
addSubRooms(subRoomId, baseDepth + 1);
|
||||||
} else {
|
|
||||||
// Unjoined sub-room - show with join button
|
|
||||||
items.push({ type: 'unjoined-subroom', roomId: subRoomId, depth: baseDepth + 1, isLast });
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user