ui: move note and profile rendering to notedeck_ui
We want to render notes in other apps like dave, so lets move our note rendering to notedeck_ui. We rework NoteAction so it doesn't have anything specific to notedeck_columns Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -634,7 +634,7 @@ impl<'a> TitleNeedsDb<'a> {
|
||||
let m_name = profile
|
||||
.as_ref()
|
||||
.ok()
|
||||
.map(|p| crate::profile::get_display_name(Some(p)).name());
|
||||
.map(|p| notedeck::name::get_display_name(Some(p)).name());
|
||||
|
||||
m_name.unwrap_or("Profile")
|
||||
} else {
|
||||
|
||||
@@ -2,15 +2,12 @@ use crate::{
|
||||
nav::RenderNavAction,
|
||||
profile::ProfileAction,
|
||||
timeline::{TimelineCache, TimelineKind},
|
||||
ui::{
|
||||
self,
|
||||
note::{contents::NoteContext, NoteOptions},
|
||||
profile::ProfileView,
|
||||
},
|
||||
ui::{self, ProfileView},
|
||||
};
|
||||
|
||||
use enostr::Pubkey;
|
||||
use notedeck::{Accounts, MuteFun, UnknownIds};
|
||||
use notedeck::{Accounts, MuteFun, NoteContext, UnknownIds};
|
||||
use notedeck_ui::NoteOptions;
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn render_timeline_route(
|
||||
|
||||
Reference in New Issue
Block a user