enostr: rename Event to Note
we will likely replace Note with nostrdb::Note in the future, this just helps with that transition Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -582,9 +582,9 @@ fn get_unknown_ids_filter(ids: &[UnknownId<'_>]) -> Option<Vec<Filter>> {
|
||||
filters.push(pk_filter);
|
||||
}
|
||||
|
||||
let note_ids: Vec<enostr::EventId> = ids
|
||||
let note_ids: Vec<enostr::NoteId> = ids
|
||||
.iter()
|
||||
.flat_map(|id| id.is_id().map(|id| enostr::EventId::new(*id)))
|
||||
.flat_map(|id| id.is_id().map(|id| enostr::NoteId::new(*id)))
|
||||
.collect();
|
||||
if !note_ids.is_empty() {
|
||||
filters.push(Filter::new().ids(note_ids));
|
||||
|
||||
1
src/note.rs
Normal file
1
src/note.rs
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
Reference in New Issue
Block a user