diff --git a/src/components/NoteList/index.tsx b/src/components/NoteList/index.tsx index 2a04a94..49f7cf9 100644 --- a/src/components/NoteList/index.tsx +++ b/src/components/NoteList/index.tsx @@ -161,6 +161,7 @@ export default function NoteList({ }, [loadMore]) const showNewEvents = () => { + topRef.current?.scrollIntoView({ behavior: 'smooth', block: 'end' }) setEvents((oldEvents) => [...newEvents, ...oldEvents]) setNewEvents([]) } @@ -177,6 +178,13 @@ export default function NoteList({ }} />
+ {events.length > 0 && + newEvents.filter((event: Event) => { + return ( + (!filterMutedNotes || !mutePubkeys.includes(event.pubkey)) && + (listMode !== 'posts' || !isReplyNoteEvent(event)) + ) + }).length > 0 &&