mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-10 12:49:29 +02:00
fix error when muting users in drawer
This commit is contained in:
parent
00e605214a
commit
b264de2686
@ -71,8 +71,6 @@ export const ThreadPost = memo(({ post, initShowReplies, focusId, level = -1 }:
|
||||
</Alert>
|
||||
);
|
||||
|
||||
if (isMuted && replies.length === 0) return null;
|
||||
|
||||
const colorProps = useThreadColorLevelProps(level, focusId === post.event.id);
|
||||
|
||||
const header = (
|
||||
@ -139,6 +137,8 @@ export const ThreadPost = memo(({ post, initShowReplies, focusId, level = -1 }:
|
||||
const ref = useRef<HTMLDivElement | null>(null);
|
||||
useRegisterIntersectionEntity(ref, post.event.id);
|
||||
|
||||
if (isMuted && replies.length === 0) return null;
|
||||
|
||||
return (
|
||||
<>
|
||||
<Flex
|
||||
|
@ -93,9 +93,6 @@ export default function ThreadView() {
|
||||
<Spinner /> Loading note
|
||||
</Heading>
|
||||
)}
|
||||
{/* <Code as="pre">
|
||||
{JSON.stringify({ pointer, rootId, focused: focusedEvent?.id, refs, timelineId, events: events.length }, null, 2)}
|
||||
</Code> */}
|
||||
<IntersectionObserverProvider callback={callback}>
|
||||
{focusedEvent && rootId ? (
|
||||
<ThreadPage thread={thread} rootId={rootId} focusId={focusedEvent.id} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user