From c2967487a24bc87501cbc7afb7d2752407e2f963 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 23 Sep 2024 21:01:22 +0100 Subject: [PATCH] show if no prev message --- src/components/dms/MessageItem.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/dms/MessageItem.tsx b/src/components/dms/MessageItem.tsx index ac2035f73b..52220e2cac 100644 --- a/src/components/dms/MessageItem.tsx +++ b/src/components/dms/MessageItem.tsx @@ -48,9 +48,7 @@ let MessageItem = ({ const isNextFromSameSender = isNextFromSelf === isFromSelf const isNewDay = useMemo(() => { - // TODO: figure out how we can show this for when we're at the start - // of the conversation - if (!prevMessage) return false + if (!prevMessage) return true const thisDate = new Date(message.sentAt) const prevDate = new Date(prevMessage.sentAt)