Skip to content

Commit

Permalink
removed older pull request changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abhipatel0211 committed Jan 28, 2024
1 parent 75ad089 commit 2b61fb9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions apps/meteor/client/views/room/MessageList/MessageList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { IRoom } from '@rocket.chat/core-typings';
import { isThreadMessage } from '@rocket.chat/core-typings';
import { MessageDivider, Box } from '@rocket.chat/fuselage';
import { MessageDivider } from '@rocket.chat/fuselage';
import { useSetting, useTranslation, useUserPreference } from '@rocket.chat/ui-contexts';
import type { ReactElement, ComponentProps } from 'react';
import React, { Fragment, memo } from 'react';
Expand Down Expand Up @@ -58,13 +58,9 @@ export const MessageList = ({ rid, scrollMessageList }: MessageListProps): React
return (
<Fragment key={message._id}>
{showDivider && (
<Box style={{ position: 'sticky', top: '0' , zIndex: '999' }}>
<MessageDivider unreadLabel={showUnreadDivider ? t('Unread_Messages').toLowerCase() : undefined}>
{newDay && formatDate(message.ts)}
</MessageDivider>

</Box>

<MessageDivider unreadLabel={showUnreadDivider ? t('Unread_Messages').toLowerCase() : undefined}>
{newDay && formatDate(message.ts)}
</MessageDivider>
)}

{visible && (
Expand Down

0 comments on commit 2b61fb9

Please sign in to comment.