Fix feature-gating of messages

This commit is contained in:
Alex Gleason 2022-05-24 11:24:47 -04:00
parent 788f6111a4
commit 9401493af1
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 3 deletions

View File

@ -184,9 +184,8 @@ const SwitchingColumnsArea: React.FC = ({ children }) => {
{features.federating && <WrappedRoute path='/timeline/:instance' exact page={RemoteInstancePage} component={RemoteTimeline} content={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.conversations && <WrappedRoute path='/conversations' page={DefaultPage} component={Conversations} content={children} />}
{features.directTimeline ? ( {features.directTimeline && <WrappedRoute path='/messages' page={DefaultPage} component={DirectTimeline} content={children} />}
<WrappedRoute path='/messages' page={DefaultPage} component={DirectTimeline} content={children} /> {(features.conversations && !features.directTimeline) && (
) : (
<WrappedRoute path='/messages' page={DefaultPage} component={Conversations} content={children} /> <WrappedRoute path='/messages' page={DefaultPage} component={Conversations} content={children} />
)} )}