notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 7372860e2daade9cf49e620c0f1a1b33e796cbd8
parent 15eea931def41515c8ef5bf350094b5365237351
Author: kernelkind <kernelkind@gmail.com>
Date:   Tue, 16 Dec 2025 14:28:14 -0500

feat(giftwrap): make sure to sub init filter

giftwraps should be subbed on init filter as well

related to: cc5bbaa9145330fb76fd68fdef6277d6ffff67fe

Signed-off-by: kernelkind <kernelkind@gmail.com>

Diffstat:
Mcrates/notedeck/src/account/accounts.rs | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/crates/notedeck/src/account/accounts.rs b/crates/notedeck/src/account/accounts.rs @@ -303,6 +303,16 @@ impl Accounts { ), relay_url, ); + if let Some(cur_pk) = self.selected_filled().map(|s| s.pubkey) { + let giftwraps_filter = nostrdb::Filter::new() + .kinds([1059]) + .pubkeys([cur_pk.bytes()]) + .build(); + pool.send_to( + &ClientMessage::req(self.subs.giftwraps.remote.clone(), vec![giftwraps_filter]), + relay_url, + ); + } } pub fn update(&mut self, ndb: &mut Ndb, pool: &mut RelayPool, ctx: &egui::Context) {