Browse Source

fix: 🐛

imwald
codytseng 6 months ago
parent
commit
60eaa82955
  1. 3
      src/providers/NotificationProvider.tsx

3
src/providers/NotificationProvider.tsx

@ -93,9 +93,8 @@ export function NotificationProvider({ children }: { children: React.ReactNode } @@ -93,9 +93,8 @@ export function NotificationProvider({ children }: { children: React.ReactNode }
try {
let eosed = false
const relayList = await client.fetchRelayList(pubkey)
const relayUrls = relayList.read.concat(BIG_RELAY_URLS).slice(0, 4)
const subCloser = client.subscribe(
relayUrls,
relayList.read.length > 0 ? relayList.read.slice(0, 5) : BIG_RELAY_URLS,
[
{
kinds: [

Loading…
Cancel
Save