From ba9e8d055ef5b102351bf205d0c477f9fbc3e8ee Mon Sep 17 00:00:00 2001 From: 7w1 Date: Thu, 7 May 2026 14:44:40 -0500 Subject: [PATCH] forgot to commit a file whoops --- src/app/features/room/RoomViewFollowing.tsx | 126 +------------------- src/app/plugins/markdown/htmlToMarkdown.ts | 6 +- 2 files changed, 3 insertions(+), 129 deletions(-) diff --git a/src/app/features/room/RoomViewFollowing.tsx b/src/app/features/room/RoomViewFollowing.tsx index 35a61b882..979ee6507 100644 --- a/src/app/features/room/RoomViewFollowing.tsx +++ b/src/app/features/room/RoomViewFollowing.tsx @@ -172,131 +172,7 @@ export const RoomViewFollowing = as<'div', RoomViewFollowingProps>( )} - 0 ? 'button' : 'div'} - onClick={names.length > 0 ? () => setOpen(true) : undefined} - className={classNames(css.RoomViewFollowing({ clickable: names.length > 0 }), className)} - alignItems="Center" - justifyContent="End" - gap="200" - {...props} - ref={ref} - > - {names.length > 0 && ( - <> - - - {names.length === 1 && ( - <> - {names[0]} - - {' is following the conversation.'} - - - )} - {names.length === 2 && ( - <> - {names[0]} - - {' and '} - - {names[1]} - - {' are following the conversation.'} - - - )} - {names.length === 3 && ( - <> - {names[0]} - - {', '} - - {names[1]} - - {' and '} - - {names[2]} - - {' are following the conversation.'} - - - )} - {names.length > 3 && ( - <> - {names[0]} - - {', '} - - {names[1]} - - {', '} - - {names[2]} - - {' and '} - - {names.length - 3} others - - {' are following the conversation.'} - - - )} - - - )} - - + ); } ); diff --git a/src/app/plugins/markdown/htmlToMarkdown.ts b/src/app/plugins/markdown/htmlToMarkdown.ts index b43811452..01fe1f8b9 100644 --- a/src/app/plugins/markdown/htmlToMarkdown.ts +++ b/src/app/plugins/markdown/htmlToMarkdown.ts @@ -202,10 +202,8 @@ function processChildren( isText(next2) && next2.data === '>' ) { - const href = (next as Element).attribs.href ?? ''; - const content = (next as Element).children - .map((c) => processNode(c, listDepth, insideCode)) - .join(''); + const href = next.attribs.href ?? ''; + const content = next.children.map((c) => processNode(c, listDepth, insideCode)).join(''); out.push(`[${content}](<${href}>)`); i += 2; continue;