From 0c937d97cd645994ec39bb0cc46adfd34e22e7df Mon Sep 17 00:00:00 2001 From: codytseng Date: Sat, 5 Apr 2025 20:19:30 +0800 Subject: [PATCH] feat: only use read relays to subscribe notifications --- src/components/NotificationList/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/NotificationList/index.tsx b/src/components/NotificationList/index.tsx index 365bccbd..ebb5ef63 100644 --- a/src/components/NotificationList/index.tsx +++ b/src/components/NotificationList/index.tsx @@ -78,9 +78,7 @@ const NotificationList = forwardRef((_, ref) => { const relayList = await client.fetchRelayList(pubkey) let eventCount = 0 const { closer, timelineKey } = await client.subscribeTimeline( - relayList.read.length >= 4 - ? relayList.read - : relayList.read.concat(BIG_RELAY_URLS).slice(0, 4), + relayList.read.length > 0 ? relayList.read.slice(0, 5) : BIG_RELAY_URLS, { '#p': [pubkey], kinds: filterKinds,