Fix feature-gating of messages

ci-review-rules
Alex Gleason 2022-05-24 11:24:47 -04:00
rodzic 788f6111a4
commit 9401493af1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
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} />
)}