nwc: turn pending zap orange when we have a NWC success

Orange means payment successful now, not just presence of zap

This introduces a paid pending state, which shows up as an orange timer
thing in the zaps view. This can be useful if the zap is never sent. We
don't want the user to think the payment didn't go through.
This commit is contained in:
William Casarin
2023-05-13 23:28:07 -07:00
parent 03691d0369
commit 69fc6694f1
6 changed files with 68 additions and 19 deletions

View File

@@ -143,7 +143,7 @@ class HomeModel: ObservableObject {
}
if resp.response.error == nil {
nwc_success(zapcache: self.damus_state.zaps, resp: resp)
nwc_success(zapcache: self.damus_state.zaps, evcache: self.damus_state.events, resp: resp)
return
}