Global Feed Post Login
Replying to Avatar jb55

5 second delay for zap cancel opportunity -> fetch lightning invoice from users lightning address -> send invoice to NWC relay for payment -> nwc pay confirmation -> n second delay -> zap appears …

I realize none of this really needs to be shown to the user. When you click the zap button, it just becomes a placeholder that tracks all this progress and state internally, but otherwise shows immediate zap success. Most of the time it will succeed, in the instances it doesn’t the zap just goes away and you can retry if you want, but its not the end of the world. The biggest thing is the instant haptic feedback on zap that will tend to work 99% of the time anyways. I’m not even going to show a different color I don’t think, you can inspect the zaps in the zap list to see if its still pending, but its a detail users rarely need to care about

Avatar
nout 2y ago

What if you tap it again immediately? Should that try to cancel it?

Reply to this note

Please Login to reply.

Discussion

Avatar
jb55 2y ago

Yes this is how it works. Thats why the 5 second delay is there. It doesn’t try to cancel it, it does cancel it.

Thread collapsed