diff --git a/native/navigation/community-drawer-item.react.js b/native/navigation/community-drawer-item.react.js --- a/native/navigation/community-drawer-item.react.js +++ b/native/navigation/community-drawer-item.react.js @@ -3,6 +3,7 @@ import * as React from 'react'; import { View, TouchableOpacity } from 'react-native'; +import { threadTypeIsCommunityRoot } from 'lib/types/thread-types-enum.js'; import { useResolvedThreadInfo } from 'lib/utils/entity-helpers.js'; import { ExpandButton, ExpandButtonDisabled } from './expand-buttons.react.js'; @@ -76,6 +77,13 @@ [itemStyle.indentation, itemStyle.background, styles], ); + const communityActionsButton = React.useMemo(() => { + if (!threadTypeIsCommunityRoot(threadInfo.type)) { + return null; + } + return ; + }, [threadInfo]); + return ( @@ -90,7 +98,7 @@ {uiName} - + {communityActionsButton} {subchannelsButton}