From e95305c1a0c7816b43e5fb6b1915cde48ff97e19 Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Sun, 16 Aug 2026 12:15:49 +0530 Subject: [PATCH] show draft message in thread selector --- src/app/features/room/RoomTimeline.tsx | 2 + .../thread-selector/ThreadSelector.tsx | 37 +++++++++++++------ 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/src/app/features/room/RoomTimeline.tsx b/src/app/features/room/RoomTimeline.tsx index 237c9021..315638af 100644 --- a/src/app/features/room/RoomTimeline.tsx +++ b/src/app/features/room/RoomTimeline.tsx @@ -204,6 +204,7 @@ export function RoomTimeline({ eventId, roomInputRef, editor, timeline }: RoomTi ] ); + const activeThread = useObservableValue(timeline.activeThread); const threads = useObservableValue(timeline.threads); const redacted = useObservableValue(timeline.relations.redacted); const reactions = useObservableValue(timeline.relations.reactions.eventToRelations); @@ -484,6 +485,7 @@ export function RoomTimeline({ eventId, roomInputRef, editor, timeline }: RoomTi {reactionJSX} {threadTimeline && ( - - Last reply by - {getMemberName(latestReplyEvent.sender)} - at - + {draft && !active ? ( + + Draft: + {toPlainText(draft, false).trim()} + + ) : ( + + Last reply by + {getMemberName(latestReplyEvent.sender)} + at + + )}