From c32b3a4af92831c197754599c9d1c1188d0b17f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Thu, 18 Sep 2025 13:11:17 +0200 Subject: [PATCH] pl-fe: fix status interactions not updating MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- .../src/features/status/components/thread.tsx | 76 +++++++++---------- 1 file changed, 37 insertions(+), 39 deletions(-) diff --git a/packages/pl-fe/src/features/status/components/thread.tsx b/packages/pl-fe/src/features/status/components/thread.tsx index 4f81f2c09..1efcaf2a7 100644 --- a/packages/pl-fe/src/features/status/components/thread.tsx +++ b/packages/pl-fe/src/features/status/components/thread.tsx @@ -309,7 +309,42 @@ const Thread = ({ }; const renderChildren = (list: Array) => list.map(id => { - if (id === status.id) return focusedStatus; + if (id === status.id) return ( +
+ {status.deleted ? ( + + ) : ( + +
+ + + +
+ + +
+
+ )} + + {hasDescendants && ( +
+ )} +
+ ); if (id.endsWith('-tombstone')) { return renderTombstone(id); @@ -361,44 +396,7 @@ const Thread = ({ react: handleHotkeyReact, }; - const focusedStatus = ( -
- {status.deleted ? ( - - ) : ( - -
- - - -
- - -
-
- )} - - {hasDescendants && ( -
- )} -
- ); - - const children = useMemo(() => renderChildren(thread), [thread, linear]); + const children = useMemo(() => renderChildren(thread), [thread, linear, status]); if (isModal) children.unshift(
); useEffect(() => {