Skip to content

Commit d435989

Browse files
reintroduce hasBeenEdited
1 parent 7e18aae commit d435989

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/app/chat-transcript.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ export function ChatTranscript({
6262
<AnimatePresence>
6363
{!hidden && (
6464
<MotionContainer {...CONTAINER_MOTION_PROPS} {...props}>
65-
{messages.map(({ id, timestamp, from, message }: ReceivedMessage) => {
65+
{messages.map(({ id, timestamp, from, message, editTimestamp }: ReceivedMessage) => {
6666
const locale = navigator?.language ?? 'en-US';
6767
const messageOrigin = from?.isLocal ? 'local' : 'remote';
68+
const hasBeenEdited = !!editTimestamp;
6869

6970
return (
7071
<MotionChatEntry
@@ -73,6 +74,7 @@ export function ChatTranscript({
7374
timestamp={timestamp}
7475
message={message}
7576
messageOrigin={messageOrigin}
77+
hasBeenEdited={hasBeenEdited}
7678
{...MESSAGE_MOTION_PROPS}
7779
/>
7880
);

0 commit comments

Comments
 (0)