diff --git a/src/lib/components/Message.svelte b/src/lib/components/Message.svelte index 14c3f15..d5fcc43 100644 --- a/src/lib/components/Message.svelte +++ b/src/lib/components/Message.svelte @@ -1,11 +1,32 @@ @@ -13,7 +34,7 @@
Profile Picture @@ -24,8 +45,9 @@
+ - {formatDistanceToNow(createdAt)} + {timeElapsed} diff --git a/src/lib/components/ui/ChatItem.svelte b/src/lib/components/ui/ChatItem.svelte index 52c005b..fcefea6 100644 --- a/src/lib/components/ui/ChatItem.svelte +++ b/src/lib/components/ui/ChatItem.svelte @@ -1,10 +1,28 @@ @@ -12,7 +30,7 @@

{title}

{lastMessage}

-

{formatDistanceToNow(createdAt)}

+

{timeElapsed}