From 11902eb7bb9e2d368584dbbc302e1dfd0074ab01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Thu, 26 Mar 2026 00:01:18 +0100 Subject: [PATCH] nicolium: fix hasDescendants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/nicolium/src/features/status/components/thread.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/nicolium/src/features/status/components/thread.tsx b/packages/nicolium/src/features/status/components/thread.tsx index 0c223e91d..366ffb0b7 100644 --- a/packages/nicolium/src/features/status/components/thread.tsx +++ b/packages/nicolium/src/features/status/components/thread.tsx @@ -243,7 +243,7 @@ const Thread = ({ const renderChildren = (list: Array) => list.map((id) => { - if (id === status.id) + if (id === status.id) { return (
{deleted ? ( @@ -289,6 +289,7 @@ const Thread = ({ )}
); + } if (id.endsWith('-tombstone')) { return renderTombstone(id); @@ -328,7 +329,7 @@ const Thread = ({ [status.id], ); - const hasDescendants = thread.length > statusIndex; + const hasDescendants = thread.length > statusIndex + 1; type HotkeyHandlers = { [key: string]: (keyEvent?: KeyboardEvent) => void };