feat: 💨

This commit is contained in:
codytseng 2025-06-05 17:02:44 +08:00
parent 2b82ae78b7
commit 00866fd73a
3 changed files with 10 additions and 3 deletions

View file

@ -251,7 +251,14 @@ export default function ReplyNoteList({
<div className={className}>
{replies.slice(0, showCount).map((reply) => {
if (!isUserTrusted(reply.pubkey)) {
return null
const repliesForThisReply = repliesMap.get(reply.id)
// If the reply is not trusted and there are no trusted replies for this reply, skip rendering
if (
!repliesForThisReply ||
repliesForThisReply.events.every((evt) => !isUserTrusted(evt.pubkey))
) {
return null
}
}
const parentEventTag = getParentEventTag(reply)