Merge branch 'gate-messaging' into 'develop'

Fix feature-gating of messages

See merge request soapbox-pub/soapbox-fe!1445
ci-review-rules
Alex Gleason 2022-05-24 16:12:16 +00:00
commit 5bfec696d9
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -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} />
)}