sforkowany z mirror/soapbox
Fix feature-gating of messages
rodzic
788f6111a4
commit
9401493af1
|
@ -184,9 +184,8 @@ const SwitchingColumnsArea: React.FC = ({ children }) => {
|
|||
{features.federating && <WrappedRoute path='/timeline/:instance' exact page={RemoteInstancePage} component={RemoteTimeline} content={children} />}
|
||||
|
||||
{features.conversations && <WrappedRoute path='/conversations' page={DefaultPage} component={Conversations} content={children} />}
|
||||
{features.directTimeline ? (
|
||||
<WrappedRoute path='/messages' page={DefaultPage} component={DirectTimeline} content={children} />
|
||||
) : (
|
||||
{features.directTimeline && <WrappedRoute path='/messages' page={DefaultPage} component={DirectTimeline} content={children} />}
|
||||
{(features.conversations && !features.directTimeline) && (
|
||||
<WrappedRoute path='/messages' page={DefaultPage} component={Conversations} content={children} />
|
||||
)}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue