nip10: show initial reply information on notes
Using the newly merged nip10 code, we can show replies on notes! This is not final, and it's actually different than how we do it in Damus iOS. Not sure if I like it yet. We will likely have to put pubkey information back in somewhere soon. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -499,10 +499,10 @@ impl Damus {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_note_cache_mut(&mut self, note_key: NoteKey, created_at: u64) -> &mut NoteCache {
|
||||
pub fn get_note_cache_mut(&mut self, note_key: NoteKey, note: &Note<'_>) -> &mut NoteCache {
|
||||
self.note_cache
|
||||
.entry(note_key)
|
||||
.or_insert_with(|| NoteCache::new(created_at))
|
||||
.or_insert_with(|| NoteCache::new(note))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user