stackernews / stacker.news

Internet communities that pay you Bitcoin
https://stacker.news
MIT License
439 stars 113 forks source link

Failures on paid action retry flicker, doesn’t show qr #1500

Open huumn opened 1 month ago

huumn commented 1 month ago

For whatever reason my sending wallet is failing on the Wi-Fi I’m using and when retrying I can’t fallback to a qr.

riccardobl commented 1 week ago

This is caused by the wallet failing too slowly and the qr code not showing due to the 1000 ms timeout here: https://github.com/stackernews/stacker.news/blob/master/components/use-paid-mutation.js#L40

Even if we increase the timeout, there might be multiple wallets failing, so it will be hard to have a reliable behavior.

IMO a possible solution is to use alwaysShowQROnFailure when pressing the retry button and show a modal that lets the user know the payment is happening, with a button to cancel, so we avoid the 'qr code showing up during the navigation' issue.

huumn commented 1 week ago

If there are attached wallets, I think we'll want to retry in the background as opposed to a QR popping up.