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:
William Casarin
2024-07-01 06:38:08 -07:00
parent a16d5b3a05
commit 307b8af8f1
7 changed files with 130 additions and 136 deletions

View File

@@ -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
View File

@@ -0,0 +1 @@