notedeck

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

commit 4992e25b3acf7017e860640912eb867bd6842c6b
parent 7b1ace328f005dfede1b7d479fdf28553414c3af
Author: kernelkind <kernelkind@gmail.com>
Date:   Sun, 24 Aug 2025 23:17:01 -0400

unknownids: use pk bytes

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

Diffstat:
Mcrates/notedeck/src/unknowns.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/crates/notedeck/src/unknowns.rs b/crates/notedeck/src/unknowns.rs @@ -195,13 +195,13 @@ impl UnknownIds { } } - pub fn add_pubkey_if_missing(&mut self, ndb: &Ndb, txn: &Transaction, pubkey: &Pubkey) { + pub fn add_pubkey_if_missing(&mut self, ndb: &Ndb, txn: &Transaction, pubkey: &[u8; 32]) { // we already have this profile, skip if ndb.get_profile_by_pubkey(txn, pubkey).is_ok() { return; } - let unknown_id = UnknownId::Pubkey(*pubkey); + let unknown_id = UnknownId::Pubkey(Pubkey::new(*pubkey)); if self.ids.contains_key(&unknown_id) { return; }