feat: only use read relays to subscribe notifications
This commit is contained in:
parent
69209957e4
commit
0c937d97cd
1 changed files with 1 additions and 3 deletions
|
|
@ -78,9 +78,7 @@ const NotificationList = forwardRef((_, ref) => {
|
||||||
const relayList = await client.fetchRelayList(pubkey)
|
const relayList = await client.fetchRelayList(pubkey)
|
||||||
let eventCount = 0
|
let eventCount = 0
|
||||||
const { closer, timelineKey } = await client.subscribeTimeline(
|
const { closer, timelineKey } = await client.subscribeTimeline(
|
||||||
relayList.read.length >= 4
|
relayList.read.length > 0 ? relayList.read.slice(0, 5) : BIG_RELAY_URLS,
|
||||||
? relayList.read
|
|
||||||
: relayList.read.concat(BIG_RELAY_URLS).slice(0, 4),
|
|
||||||
{
|
{
|
||||||
'#p': [pubkey],
|
'#p': [pubkey],
|
||||||
kinds: filterKinds,
|
kinds: filterKinds,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue