refactor: remove processs_note_selection

Moved this to NoteOptionSelection::process

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-09-26 09:22:05 -07:00
parent 171889b3aa
commit 1a94c21d96
4 changed files with 13 additions and 14 deletions

View File

@@ -1,6 +1,5 @@
use crate::{
actionbar::BarAction, imgcache::ImageCache, note_options::process_note_selection,
notecache::NoteCache, thread::Threads, ui,
actionbar::BarAction, imgcache::ImageCache, notecache::NoteCache, thread::Threads, ui,
};
use nostrdb::{Ndb, NoteKey, Transaction};
use tracing::{error, warn};
@@ -126,7 +125,9 @@ impl<'a> ThreadView<'a> {
action = Some(bar_action);
}
process_note_selection(ui, note_response.option_selection, &note);
if let Some(selection) = note_response.option_selection {
selection.process(ui, &note);
}
});
ui::hline(ui);