Skip to content

Commit

Permalink
restore unknown id fetching of root notes
Browse files Browse the repository at this point in the history
still technically depends on the notebuf branch

Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 committed Jul 31, 2024
1 parent c3fc4e0 commit 4b644be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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() {
Expand All @@ -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) {
Expand Down

0 comments on commit 4b644be

Please sign in to comment.