add Accounts to NoteContext

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-07-14 20:42:09 -04:00
parent e2295172a2
commit 397bfce817
13 changed files with 69 additions and 166 deletions
+8 -19
View File
@@ -4,7 +4,7 @@ use crate::ui::{
note::{PostAction, PostResponse, PostType},
};
use enostr::{FilledKeypair, KeypairUnowned, NoteId};
use enostr::{FilledKeypair, NoteId};
use notedeck::NoteContext;
use notedeck_ui::jobs::JobsCache;
use notedeck_ui::{NoteOptions, NoteView, ProfilePic};
@@ -67,27 +67,16 @@ impl<'a, 'd> PostReplyView<'a, 'd> {
let note_offset: i8 =
pfp_offset - ProfilePic::medium_size() / 2 - NoteView::expand_size() / 2;
let zapping_acc = self
.note_context
.current_account_has_wallet
.then(|| KeypairUnowned::from(&self.poster));
let quoted_note = egui::Frame::NONE
.outer_margin(egui::Margin::same(note_offset))
.show(ui, |ui| {
NoteView::new(
self.note_context,
zapping_acc.as_ref(),
self.note,
self.note_options,
self.jobs,
)
.truncate(false)
.selectable_text(true)
.actionbar(false)
.medium_pfp(true)
.options_button(true)
.show(ui)
NoteView::new(self.note_context, self.note, self.note_options, self.jobs)
.truncate(false)
.selectable_text(true)
.actionbar(false)
.medium_pfp(true)
.options_button(true)
.show(ui)
})
.inner;