From 0b9b77dd578791cc97361b0e6dec48a1a04d7897 Mon Sep 17 00:00:00 2001 From: Attila Gazso <230163+agazso@users.noreply.github.com> Date: Tue, 10 Oct 2023 19:07:42 +0200 Subject: [PATCH] fix: group time badge --- src/routes/group/chat/[id]/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/group/chat/[id]/+page.svelte b/src/routes/group/chat/[id]/+page.svelte index aed209c6..a2518e0d 100644 --- a/src/routes/group/chat/[id]/+page.svelte +++ b/src/routes/group/chat/[id]/+page.svelte @@ -198,7 +198,7 @@ messages[i].fromAddress !== messages[i + 1]?.fromAddress || messages[i + 1]?.type !== 'user'} {@const sender = chat.users.find((u) => message.fromAddress === u.address)} - {#if i > 0 && areDifferentDays(messages[i].timestamp, messages[i - 1].timestamp)} + {#if i === 0 || (i > 0 && areDifferentDays(messages[i].timestamp, messages[i - 1].timestamp))} {/if}