From 4b644bee32561444c339d0cf2fa30aa76d5573d8 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 31 Jul 2024 13:26:15 -0700 Subject: [PATCH] restore unknown id fetching of root notes still technically depends on the notebuf branch Signed-off-by: William Casarin --- src/app.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app.rs b/src/app.rs index fff2506..ad230cf 100644 --- a/src/app.rs +++ b/src/app.rs @@ -252,7 +252,7 @@ impl<'a> UnknownId<'a> { pub fn get_unknown_note_ids<'a>( ndb: &Ndb, - _cached_note: &CachedNote, + cached_note: &CachedNote, txn: &'a Transaction, note: &Note<'a>, note_key: NoteKey, @@ -265,7 +265,6 @@ pub fn get_unknown_note_ids<'a>( } // pull notes that notes are replying to - /* TODO: FIX tags lifetime if cached_note.reply.root.is_some() { let note_reply = cached_note.reply.borrow(note.tags()); if let Some(root) = note_reply.root() { @@ -282,7 +281,6 @@ pub fn get_unknown_note_ids<'a>( } } } - */ let blocks = ndb.get_blocks_by_key(txn, note_key)?; for block in blocks.iter(note) {