pull down to refresh
Comment box just sits there if a payment was needed for a reply
reply
Ah, I see. You literally meant "comments" with comments, haha. Makes sense!
reply
He means to just post it optimistically, storing it on backend like a "draft" until it succeeds, which is closer to the ideal (we "absorb" the wait for them). For "failed drafts," we'll probably want to send them a notification. For "successful drafts" we'd do nothing and yay.
reply
Yay for optimistic UX. Great latency saver...
reply
but have some pending UI for it.
We could style the text with text-muted while the payment is pending
reply
We poll every second if the invoice was paid, so some slowness is definitely on our side.
What do you mean? You should see toasts that show if payments are pending.
update: Oh, you mean the toasts in the right bottom corner with comments?no, Tony didn't.Tested with LNbits: https://files.ekzyis.com/public/sn/lnbits_zap.mp4