Skip to content

Commit

Permalink
Fix loading thread previews (#5098)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Jan 3, 2024
1 parent 71b3add commit 4081a41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/app/src/components/home/thread/ThreadPreview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
eventIndex={thread.rootMessage.index}
timestamp={thread.rootMessage.timestamp}
expiresAt={thread.rootMessage.expiresAt}
dateFormatter={client.toDatetimeString}
dateFormatter={(date) => client.toDatetimeString(date)}
msg={thread.rootMessage.event} />
</div>
{#if missingMessages > 0}
Expand Down Expand Up @@ -200,7 +200,7 @@
eventIndex={evt.index}
timestamp={evt.timestamp}
expiresAt={evt.expiresAt}
dateFormatter={client.toDatetimeString}
dateFormatter={(date) => client.toDatetimeString(date)}
msg={evt.event} />
{/each}
{/each}
Expand Down

0 comments on commit 4081a41

Please sign in to comment.