Skip to content

Commit

Permalink
fix: group time badge
Browse files Browse the repository at this point in the history
  • Loading branch information
agazso committed Oct 10, 2023
1 parent afd6c96 commit 0b9b77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/group/chat/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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))}
<ChatDateBadge text={formatTimestampSeparator(message.timestamp)} />
{/if}
<ChatMessage
Expand Down

0 comments on commit 0b9b77d

Please sign in to comment.