@@ -7,7 +7,7 @@ use crate::{
|
||||
|
||||
use enostr::Pubkey;
|
||||
use notedeck::{Accounts, MuteFun, NoteContext, UnknownIds};
|
||||
use notedeck_ui::NoteOptions;
|
||||
use notedeck_ui::{jobs::JobsCache, NoteOptions};
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn render_timeline_route(
|
||||
@@ -20,6 +20,7 @@ pub fn render_timeline_route(
|
||||
depth: usize,
|
||||
ui: &mut egui::Ui,
|
||||
note_context: &mut NoteContext,
|
||||
jobs: &mut JobsCache,
|
||||
) -> Option<RenderNavAction> {
|
||||
if kind == &TimelineKind::Universe {
|
||||
note_options.set_hide_media(true);
|
||||
@@ -40,6 +41,7 @@ pub fn render_timeline_route(
|
||||
note_context,
|
||||
note_options,
|
||||
&accounts.get_selected_account().map(|a| (&a.key).into()),
|
||||
jobs,
|
||||
)
|
||||
.ui(ui);
|
||||
|
||||
@@ -58,6 +60,7 @@ pub fn render_timeline_route(
|
||||
&accounts.mutefun(),
|
||||
note_options,
|
||||
note_context,
|
||||
jobs,
|
||||
)
|
||||
} else {
|
||||
// we render profiles like timelines if they are at the root
|
||||
@@ -68,6 +71,7 @@ pub fn render_timeline_route(
|
||||
note_context,
|
||||
note_options,
|
||||
&accounts.get_selected_account().map(|a| (&a.key).into()),
|
||||
jobs,
|
||||
)
|
||||
.ui(ui);
|
||||
|
||||
@@ -88,6 +92,7 @@ pub fn render_timeline_route(
|
||||
&accounts.mutefun(),
|
||||
note_context,
|
||||
&accounts.get_selected_account().map(|a| (&a.key).into()),
|
||||
jobs,
|
||||
)
|
||||
.id_source(egui::Id::new(("threadscroll", col)))
|
||||
.ui(ui)
|
||||
@@ -107,6 +112,7 @@ pub fn render_profile_route(
|
||||
is_muted: &MuteFun,
|
||||
note_options: NoteOptions,
|
||||
note_context: &mut NoteContext,
|
||||
jobs: &mut JobsCache,
|
||||
) -> Option<RenderNavAction> {
|
||||
let action = ProfileView::new(
|
||||
pubkey,
|
||||
@@ -117,6 +123,7 @@ pub fn render_profile_route(
|
||||
unknown_ids,
|
||||
is_muted,
|
||||
note_context,
|
||||
jobs,
|
||||
)
|
||||
.ui(ui);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user