feat: hide untrusted content button
This commit is contained in:
parent
5913cc3b88
commit
963051e70d
12 changed files with 177 additions and 57 deletions
|
|
@ -32,7 +32,7 @@ export default function ReplyNoteList({
|
|||
}) {
|
||||
const { t } = useTranslation()
|
||||
const { currentIndex } = useSecondaryPage()
|
||||
const { isUserTrusted } = useUserTrust()
|
||||
const { hideUntrustedInteractions, isUserTrusted } = useUserTrust()
|
||||
const [rootInfo, setRootInfo] = useState<TRootInfo | undefined>(undefined)
|
||||
const { repliesMap, addReplies } = useReply()
|
||||
const replies = useMemo(() => {
|
||||
|
|
@ -250,7 +250,7 @@ export default function ReplyNoteList({
|
|||
)}
|
||||
<div className={className}>
|
||||
{replies.slice(0, showCount).map((reply) => {
|
||||
if (!isUserTrusted(reply.pubkey)) {
|
||||
if (hideUntrustedInteractions && !isUserTrusted(reply.pubkey)) {
|
||||
const repliesForThisReply = repliesMap.get(reply.id)
|
||||
// If the reply is not trusted and there are no trusted replies for this reply, skip rendering
|
||||
if (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue