propagate current account

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-04-08 17:48:07 -04:00
parent 18ea05db0a
commit 5917bc16fd
13 changed files with 120 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
use egui::{vec2, Align, Color32, CornerRadius, RichText, Stroke, TextEdit};
use enostr::KeypairUnowned;
use super::{note::contents::NoteContext, padding};
use crate::{
@@ -21,6 +22,7 @@ pub struct SearchView<'a, 'd> {
txn: &'a Transaction,
is_muted: &'a MuteFun,
note_context: &'a mut NoteContext<'d>,
cur_acc: &'a Option<KeypairUnowned<'a>>,
}
impl<'a, 'd> SearchView<'a, 'd> {
@@ -30,6 +32,7 @@ impl<'a, 'd> SearchView<'a, 'd> {
note_options: NoteOptions,
query: &'a mut SearchQueryState,
note_context: &'a mut NoteContext<'d>,
cur_acc: &'a Option<KeypairUnowned<'a>>,
) -> Self {
Self {
txn,
@@ -37,6 +40,7 @@ impl<'a, 'd> SearchView<'a, 'd> {
query,
note_options,
note_context,
cur_acc,
}
}
@@ -79,6 +83,7 @@ impl<'a, 'd> SearchView<'a, 'd> {
self.txn,
self.is_muted,
self.note_context,
self.cur_acc,
)
.show(ui)
})