fix root element in thread looking wrongly selected

Signed-off-by: Shea <[email protected]>
This commit is contained in:
Shea committed 2026-06-12 16:24:06 +03:00
1 parent c903b0e3af
commit b4f4c8f343
1 file changed
+1 -2
+1 -2
View File
@@ -229,8 +229,7 @@ export function ThreadDrawer({ room, threadRootId, onClose, overlay }: ThreadDra
// Reply draft (keyed by threadRootId to match RoomInput's draftKey logic)
const setReplyDraft = useSetAtom(roomIdToReplyDraftAtomFamily(threadRootId));
const replyDraft = useAtomValue(roomIdToReplyDraftAtomFamily(threadRootId));
const activeReplyId = replyDraft?.eventId;
const activeReplyId = replyDraft?.body ? replyDraft?.eventId : undefined;
// User profile popup
const openUserRoomProfile = useOpenUserRoomProfile();