From 91977d649512a3a0b71e5117af85278fcf54e3bb Mon Sep 17 00:00:00 2001 From: codytseng Date: Wed, 8 Jan 2025 11:09:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20some=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NotificationList/index.tsx | 5 ++++- src/components/ParentNotePreview/index.tsx | 2 +- src/pages/secondary/NotePage/index.tsx | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/NotificationList/index.tsx b/src/components/NotificationList/index.tsx index 8003568f..05a9979a 100644 --- a/src/components/NotificationList/index.tsx +++ b/src/components/NotificationList/index.tsx @@ -108,7 +108,10 @@ export default function NotificationList() { } if (notifications.length > 0) { - setNotifications((oldNotifications) => [...oldNotifications, ...notifications]) + setNotifications((oldNotifications) => [ + ...oldNotifications, + ...notifications.filter((event) => event.pubkey !== pubkey) + ]) } setUntil(notifications[notifications.length - 1].created_at - 1) diff --git a/src/components/ParentNotePreview/index.tsx b/src/components/ParentNotePreview/index.tsx index 127816ae..d3f4e4e4 100644 --- a/src/components/ParentNotePreview/index.tsx +++ b/src/components/ParentNotePreview/index.tsx @@ -22,7 +22,7 @@ export default function ParentNotePreview({ onClick={onClick} >
{t('reply to')}
- +
{event.content}
) diff --git a/src/pages/secondary/NotePage/index.tsx b/src/pages/secondary/NotePage/index.tsx index f68c0c9c..79e2e2ca 100644 --- a/src/pages/secondary/NotePage/index.tsx +++ b/src/pages/secondary/NotePage/index.tsx @@ -52,7 +52,9 @@ export default function NotePage({ id, index }: { id?: string; index?: number }) return (
- + {rootEventId !== parentEventId && ( + + )}