diff --git a/packages/screens/Mini/Conversation/components/Conversations.tsx b/packages/screens/Mini/Conversation/components/Conversations.tsx index 14185a5991..e57736a203 100644 --- a/packages/screens/Mini/Conversation/components/Conversations.tsx +++ b/packages/screens/Mini/Conversation/components/Conversations.tsx @@ -121,6 +121,35 @@ export const Conversations = ({ ); } + const renderDateSeparator = (separatorDate: string) => { + return ( + + + + {moment(separatorDate).format("L")} + + + ); + }; + return ( <> - {!!separatorDate && ( - - - - {moment(separatorDate).format("YYYY, MMM DD")} - - - )} + {!!separatorDate && + !previousMessage && + renderDateSeparator(separatorDate)} {item.type === "accept-contact" && !previousMessage && ( )} + {!!separatorDate && + previousMessage && + renderDateSeparator(separatorDate)} ); }}