Skip to content

Commit

Permalink
fix(livechat-removal): session list rendering
Browse files Browse the repository at this point in the history
CARITAS-243
  • Loading branch information
koepferd committed Aug 28, 2024
1 parent 6c7a7ba commit d472edd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/sessionsList/SessionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import useDebounceCallback from '../../hooks/useDebounceCallback';
import {
EVENT_ROOMS_CHANGED,
EVENT_SUBSCRIPTIONS_CHANGED,
STATUS_ONLINE,
SUB_STREAM_NOTIFY_USER
} from '../app/RocketChat';
import { getValueFromCookie } from '../sessionCookie/accessSessionCookie';
Expand Down Expand Up @@ -781,7 +780,6 @@ export const SessionsList = ({
) && <SessionListCreateChat />}

{(!isLoading || finalSessionsList.length > 0) &&
status === STATUS_ONLINE &&
finalSessionsList
.map((session) =>
buildExtendedSession(session, groupIdFromParam)
Expand Down Expand Up @@ -843,8 +841,7 @@ export const SessionsList = ({
{!isLoading &&
!isCreateChatActive &&
!isReloadButtonVisible &&
finalSessionsList.length === 0 &&
status === STATUS_ONLINE && (
finalSessionsList.length === 0 && (
<EmptyListItem
sessionListTab={sessionListTab}
type={type}
Expand Down

0 comments on commit d472edd

Please sign in to comment.