Commit a0145b2
fix(listdisputes): use NOSTR_DISPUTE_EVENT_KIND for dispute filter
`listdisputes` returned no results because `create_seven_days_filter`
hardcoded `NOSTR_ORDER_EVENT_KIND` (38383) for every list kind. Dispute
events are published by mostrod under `NOSTR_DISPUTE_EVENT_KIND` (38386),
so the filter never matched and the public dispute queue always rendered
as empty even when disputes existed on the relays.
Pass the event kind into `create_seven_days_filter` and select the right
constant per `ListKind` (orders → 38383, disputes → 38386).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 76fb814 commit a0145b2
1 file changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
33 | | - | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
42 | | - | |
43 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
44 | 59 | | |
45 | 60 | | |
46 | 61 | | |
| |||
0 commit comments