diff --git a/src/components/Note/Highlight.tsx b/src/components/Note/Highlight.tsx index 80cd93f2..bc2a9706 100644 --- a/src/components/Note/Highlight.tsx +++ b/src/components/Note/Highlight.tsx @@ -102,7 +102,7 @@ function HighlightSource({ event }: { event: Event }) { return (
-
{t('From')}
+
{t('From')}
{pubkey && } {referenceEvent && isSupportedKind(referenceEvent.kind) ? ( + {t('Edit')} {t('Preview')} diff --git a/src/components/ReplyNoteList/index.tsx b/src/components/ReplyNoteList/index.tsx index 16022778..0ba09c8a 100644 --- a/src/components/ReplyNoteList/index.tsx +++ b/src/components/ReplyNoteList/index.tsx @@ -251,7 +251,14 @@ export default function ReplyNoteList({
{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)