refactor: remove processs_note_selection
Moved this to NoteOptionSelection::process Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -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, ¬e);
|
||||
if let Some(selection) = note_response.option_selection {
|
||||
selection.process(ui, ¬e);
|
||||
}
|
||||
});
|
||||
|
||||
ui::hline(ui);
|
||||
|
||||
Reference in New Issue
Block a user