@@ -25,6 +25,7 @@ mod multi_subscriber;
|
|||||||
mod nav;
|
mod nav;
|
||||||
mod note;
|
mod note;
|
||||||
mod notecache;
|
mod notecache;
|
||||||
|
mod notes_holder;
|
||||||
mod post;
|
mod post;
|
||||||
mod profile;
|
mod profile;
|
||||||
pub mod relay_pool_manager;
|
pub mod relay_pool_manager;
|
||||||
@@ -40,7 +41,6 @@ pub mod ui;
|
|||||||
mod unknowns;
|
mod unknowns;
|
||||||
mod user_account;
|
mod user_account;
|
||||||
mod view_state;
|
mod view_state;
|
||||||
mod notes_holder;
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|||||||
@@ -73,7 +73,10 @@ impl<M: NotesHolder> NotesHolderStorage<M> {
|
|||||||
.map(NoteRef::from_query_result)
|
.map(NoteRef::from_query_result)
|
||||||
.collect()
|
.collect()
|
||||||
} else {
|
} else {
|
||||||
debug!("got no results from NotesHolder lookup for {}", hex::encode(id));
|
debug!(
|
||||||
|
"got no results from NotesHolder lookup for {}",
|
||||||
|
hex::encode(id)
|
||||||
|
);
|
||||||
vec![]
|
vec![]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,13 @@ use enostr::{Filter, Pubkey};
|
|||||||
use nostrdb::{FilterBuilder, Ndb, ProfileRecord, Transaction};
|
use nostrdb::{FilterBuilder, Ndb, ProfileRecord, Transaction};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
app::copy_notes_into_timeline, filter::{self, FilterState}, multi_subscriber::MultiSubscriber, note::NoteRef, notecache::NoteCache, notes_holder::NotesHolder, timeline::{PubkeySource, Timeline, TimelineKind}
|
app::copy_notes_into_timeline,
|
||||||
|
filter::{self, FilterState},
|
||||||
|
multi_subscriber::MultiSubscriber,
|
||||||
|
note::NoteRef,
|
||||||
|
notecache::NoteCache,
|
||||||
|
notes_holder::NotesHolder,
|
||||||
|
timeline::{PubkeySource, Timeline, TimelineKind},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub enum DisplayName<'a> {
|
pub enum DisplayName<'a> {
|
||||||
@@ -60,7 +66,7 @@ impl Profile {
|
|||||||
let mut timeline =
|
let mut timeline =
|
||||||
Timeline::new(TimelineKind::profile(source), FilterState::ready(filters));
|
Timeline::new(TimelineKind::profile(source), FilterState::ready(filters));
|
||||||
|
|
||||||
copy_notes_into_timeline(&mut timeline, txn, ndb, note_cache, notes);
|
copy_notes_into_timeline(&mut timeline, txn, ndb, note_cache, notes);
|
||||||
|
|
||||||
Profile {
|
Profile {
|
||||||
timeline,
|
timeline,
|
||||||
|
|||||||
Reference in New Issue
Block a user