diff --git a/crates/notedeck/src/unknowns.rs b/crates/notedeck/src/unknowns.rs index 05e86916..1287a22e 100644 --- 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; }