Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useUserSubscription } from '@rocket.chat/ui-contexts';

import SidePanelAll from './SidePanelAll';
import SidePanelChannels from './SidePanelChannels';
import SidePanelTeams from './SidePanelTeams';
import { withErrorBoundary } from '../../../../components/withErrorBoundary';
Expand All @@ -10,7 +11,7 @@ const SidePanelRooms = ({ parentRid }: { parentRid: string }) => {
const subscription = useUserSubscription(parentRid);

if (!subscription) {
return null;
return <SidePanelAll />;
}

switch (currentTab) {
Expand All @@ -19,8 +20,6 @@ const SidePanelRooms = ({ parentRid }: { parentRid: string }) => {
case 'channels':
case 'directMessages':
return <SidePanelChannels parentRid={parentRid} subscription={subscription} />;
default:
return null;
}
};

Expand Down
Loading