diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-17 11:58:49 +0100 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-07-18 09:35:39 +0100 |
| commit | 419b827f7c0d826f5eedf574bce0cf9b85cab4ca (patch) | |
| tree | 103bdb84dd26c79e247ae859b629721322a50d47 | |
| parent | 4447aad6378403bba73d738214aa81c50b6d5567 (diff) | |
feat(status): read nip22 style status events
in anticipation of moving to the nip22 style
| -rw-r--r-- | src/lib/client.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/client.rs b/src/lib/client.rs index 9253022..e808bea 100644 --- a/src/lib/client.rs +++ b/src/lib/client.rs | |||
| @@ -31,6 +31,7 @@ use indicatif::{MultiProgress, ProgressBar, ProgressDrawTarget, ProgressState, P | |||
| 31 | use mockall::*; | 31 | use mockall::*; |
| 32 | use nostr::{ | 32 | use nostr::{ |
| 33 | Event, | 33 | Event, |
| 34 | filter::Alphabet, | ||
| 34 | nips::{nip01::Coordinate, nip19::Nip19Coordinate}, | 35 | nips::{nip01::Coordinate, nip19::Nip19Coordinate}, |
| 35 | signer::SignerBackend, | 36 | signer::SignerBackend, |
| 36 | }; | 37 | }; |
| @@ -1586,6 +1587,12 @@ pub fn get_fetch_filters( | |||
| 1586 | nostr::Filter::default() | 1587 | nostr::Filter::default() |
| 1587 | .events(proposal_ids.clone()) | 1588 | .events(proposal_ids.clone()) |
| 1588 | .kinds([vec![Kind::GitPatch, Kind::EventDeletion], status_kinds()].concat()), | 1589 | .kinds([vec![Kind::GitPatch, Kind::EventDeletion], status_kinds()].concat()), |
| 1590 | nostr::Filter::default() | ||
| 1591 | .custom_tags( | ||
| 1592 | SingleLetterTag::uppercase(Alphabet::E), | ||
| 1593 | proposal_ids.clone(), | ||
| 1594 | ) | ||
| 1595 | .kinds([vec![Kind::GitPatch, Kind::EventDeletion], status_kinds()].concat()), | ||
| 1589 | ] | 1596 | ] |
| 1590 | }, | 1597 | }, |
| 1591 | if required_profiles.is_empty() { | 1598 | if required_profiles.is_empty() { |