@@ -75,7 +75,6 @@ import { useCommunities } from "@/features/communities/useCommunities";
7575import { useAddCommunityDialogState } from "@/features/communities/addCommunityPrefill" ;
7676import { useApplyTemplate } from "@/features/channel-templates/useApplyTemplate" ;
7777import { relayClient } from "@/shared/api/relayClient" ;
78- import { useFeatureEnabled } from "@/shared/features" ;
7978import { useIdentityQuery } from "@/shared/api/hooks" ;
8079import { useRelayAutoHeal } from "@/shared/api/useRelayAutoHeal" ;
8180import { useDeferredStartup } from "@/shared/hooks/useDeferredStartup" ;
@@ -103,7 +102,7 @@ export function AppShell() {
103102 useWebviewScrollBoundaryLock ( ) ;
104103
105104 const communitiesHook = useCommunities ( ) ;
106- const communityRailEnabled = useFeatureEnabled ( "workspaceRail" ) ;
105+ const hasCommunityRail = communitiesHook . communities . length > 1 ;
107106 const addCommunityDialog = useAddCommunityDialogState ( ) ;
108107 const [ isChannelManagementOpen , setIsChannelManagementOpen ] =
109108 React . useState ( false ) ;
@@ -762,7 +761,7 @@ export function AppShell() {
762761 isHuddleDrawerOpen && "buzz-huddle-app-surface-open" ,
763762 ) }
764763 >
765- { communityRailEnabled ? (
764+ { hasCommunityRail ? (
766765 < CommunityRail
767766 activeCommunityId = {
768767 communitiesHook . activeCommunity ?. id ?? null
@@ -779,10 +778,7 @@ export function AppShell() {
779778 < AppTopChrome
780779 canGoBack = { canGoBack }
781780 canGoForward = { canGoForward }
782- hasCommunityRail = {
783- communityRailEnabled &&
784- communitiesHook . communities . length > 1
785- }
781+ hasCommunityRail = { hasCommunityRail }
786782 onGoBack = { goBack }
787783 onGoForward = { goForward }
788784 />
@@ -935,10 +931,7 @@ export function AppShell() {
935931 < RelayConnectionOverlay
936932 card = { relayConnectionCard }
937933 errorMessage = { channelsErrorMessage }
938- hasCommunityRail = {
939- communityRailEnabled &&
940- communitiesHook . communities . length > 1
941- }
934+ hasCommunityRail = { hasCommunityRail }
942935 isHuddleDrawerOpen = { isHuddleDrawerOpen }
943936 />
944937 </ div >
0 commit comments