smartvaults / smartvaults-js-client

SmartVaults javascript client
https://smartvaults.github.io/smartvaults-js-client/
2 stars 2 forks source link

Fix/retry on failure events #61

Closed Dreyhh closed 7 months ago

Dreyhh commented 7 months ago

Created a store to save delete events received so we can filter out proposals that have been deleted for at least one relay. Proposals that have an associated completed proposal are now filtered out.

This is needed to ensure that when broadcasting a proposal on mobile, desktop or web, even if the delete event fails (completely or only on some relays), we can stop showing the (now finalized) Proposal and not wait for relays to sync or retries to succeed.

Updated NostrClient to clear any pending retries when disconnecting.