feat: Enhance space hierarchy management by implementing asynchronous room fetching and improving room handling logic

This commit is contained in:
2026-07-06 16:06:50 +10:00
parent 3ee95a295d
commit f67f08f1db
5 changed files with 238 additions and 56 deletions

View File

@@ -339,6 +339,7 @@ export function Space() {
// Forum feed unless user opened manage, search, or a room (not tied to URL alias encoding).
const feedActive = isForum && !lobbySelected && !searchSelected && !selectedRoomId;
const showForumFeedSidebar = feedActive;
const forumManageMode = isForum && lobbySelected;
if (showForumFeedSidebar) {
return (
@@ -351,6 +352,14 @@ export function Space() {
);
}
if (forumManageMode) {
return (
<PageNav>
<SpaceHeader />
</PageNav>
);
}
const spacePath = getCanonicalAliasOrRoomId(mx, space.roomId);
return (