Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NDKSvelte-store events do not store the Relays they are on #213

Open
Pleb5 opened this issue Apr 12, 2024 · 0 comments
Open

NDKSvelte-store events do not store the Relays they are on #213

Pleb5 opened this issue Apr 12, 2024 · 0 comments

Comments

@Pleb5
Copy link
Contributor

Pleb5 commented Apr 12, 2024

  • Problem: onRelays is never updated in ndk-svelte, it stays an empty list

  • The event only stores one relay that is coming from the 'relay' property but this is just one, not all seen relays

  • Probable Cause: The code that deduplicates events arriving in the store(from handleEvent:187) does not account for duplicate events received with NEW INFORMATION ABOUT THE RELAYS THEY ARE ON. So the onRelays property is never updated(we return on line 197)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant