update to latest nostrdb, adding tag support

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-04-07 14:53:50 -07:00
parent 6222a7db63
commit 4526434405
3 changed files with 42 additions and 41 deletions

View File

@@ -110,6 +110,9 @@ fn relay_setup(pool: &mut RelayPool, ctx: &egui::Context) {
if let Err(e) = pool.add_url("wss://relay.damus.io".to_string(), wakeup.clone()) {
error!("{:?}", e)
}
if let Err(e) = pool.add_url("wss://pyramid.fiatjaf.com".to_string(), wakeup.clone()) {
error!("{:?}", e)
}
if let Err(e) = pool.add_url("wss://nos.lol".to_string(), wakeup.clone()) {
error!("{:?}", e)
}
@@ -253,16 +256,12 @@ fn poll_notes_for_timeline<'a>(
let new_refs = new_note_ids
.iter()
.map(|key| {
let note_key = NoteKey::new(*key);
let note = damus
.ndb
.get_note_by_key(&txn, note_key)
.expect("no note??");
let note = damus.ndb.get_note_by_key(&txn, *key).expect("no note??");
let _ = get_unknown_note_pubkeys(&damus.ndb, txn, &note, note_key, pubkeys);
let _ = get_unknown_note_pubkeys(&damus.ndb, txn, &note, *key, pubkeys);
NoteRef {
key: NoteKey::new(*key),
key: *key,
created_at: note.created_at(),
}
})