Browse Source

fix: live updates

maintain subscription after eose for most events.
User events excluded as to prevent maintaining connections
to too many relays.
fixes nostr:nevent1qqs83c56u0vvggqq8skve94u783v9r4nmh0xw32wta29rt3ge3d04dspp4mhxue69uhkummn9ekx7mqzyzsq3hh327t0h2dq6matqn5064cgj2zanl2stkj6s0lg4t2h5dty6hju4ax
master
DanConwayDev 2 years ago
parent
commit
aec3098620
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 2
      src/lib/stores/Issue.ts
  2. 2
      src/lib/stores/Proposal.ts
  3. 2
      src/lib/stores/repos.ts

2
src/lib/stores/Issue.ts

@ -71,7 +71,7 @@ export const ensureIssueFull = (repo_identifier: string, issue_id: string) => { @@ -71,7 +71,7 @@ export const ensureIssueFull = (repo_identifier: string, issue_id: string) => {
limit: 100,
},
{
closeOnEose: true,
closeOnEose: false,
},
NDKRelaySet.fromRelayUrls(relays_to_use, ndk)
)

2
src/lib/stores/Proposal.ts

@ -79,7 +79,7 @@ export const ensureProposalFull = ( @@ -79,7 +79,7 @@ export const ensureProposalFull = (
limit: 100,
},
{
closeOnEose: true,
closeOnEose: false,
},
NDKRelaySet.fromRelayUrls(relays_to_use, ndk)
)

2
src/lib/stores/repos.ts

@ -63,7 +63,7 @@ export const ensureRepoCollection = ( @@ -63,7 +63,7 @@ export const ensureRepoCollection = (
groupable: true,
// default 100
groupableDelay: 200,
closeOnEose: true,
closeOnEose: false,
},
NDKRelaySet.fromRelayUrls(base_relays, ndk)
)

Loading…
Cancel
Save